Skip to content

Commit 05d87e2

Browse files
authored
Merge pull request #2 from EndlessCodeGroup/addTests
Fixed repo link and static meta
2 parents 3d0220e + c7fd4ee commit 05d87e2

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ apply from: "jacoco.gradle"
1010

1111
group "ru.endlesscode"
1212
description "Bukkit Gradle integration plugins"
13-
version "0.6.6"
13+
version "0.6.7"
1414

1515
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
1616

src/main/groovy/ru/endlesscode/bukkitgradle/BukkitGradlePlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class BukkitGradlePlugin implements Plugin<Project> {
7474

7575
maven {
7676
name = "sk89q"
77-
url = "http://maven.sk89q.com/repo/org/sk89q/"
77+
url = "http://maven.sk89q.com/repo/"
7878
}
7979

8080
maven {

src/main/groovy/ru/endlesscode/bukkitgradle/meta/MetaFile.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class MetaFile {
8181
}
8282

8383
metaFile.eachLine { line ->
84-
line = line.trim()
8584
if (isStaticLine(line)) {
8685
staticLines << line
8786
}

src/test/groovy/ru/endlesscode/bukkitgradle/TestBase.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ main: com.example.plugin.Plugin_s
5656
author: OsipXD
5757
website: www.example_s.com
5858
59-
depend: [Vault, ProtocolLib]'''
59+
depend: [Vault, ProtocolLib]
60+
command:
61+
example'''
6062
}
6163

6264
protected void executeTask(Task task) {

src/test/groovy/ru/endlesscode/bukkitgradle/meta/MetaFileTest.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MetaFileTest extends TestBase {
2323

2424
@Test
2525
void testRemovingMetaLines() throws Exception {
26-
assertEquals(["depend: [Vault, ProtocolLib]"], this.target.readLines())
26+
assertEquals(["depend: [Vault, ProtocolLib]", "command:", " example"], this.target.readLines())
2727
}
2828

2929
@Test
@@ -37,7 +37,9 @@ class MetaFileTest extends TestBase {
3737
"version: 0.1",
3838
"website: http://www.example.com/",
3939
"authors: [OsipXD, Contributors]",
40-
"depend: [Vault, ProtocolLib]"
40+
"depend: [Vault, ProtocolLib]",
41+
"command:",
42+
" example"
4143
]
4244

4345
this.metaFile.writeTo(target)

0 commit comments

Comments
 (0)