|
1 | 1 | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2 | 2 | import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
3 |
| -import org.apache.xerces.dom.DeepNodeListImpl |
4 | 3 | import org.gradle.api.tasks.bundling.Jar
|
5 | 4 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
6 | 5 |
|
@@ -40,14 +39,16 @@ subprojects {
|
40 | 39 | }
|
41 | 40 |
|
42 | 41 | dependencies {
|
43 |
| - api(kotlin("stdlib")) |
44 |
| - api(kotlin("reflect")) |
| 42 | + compileOnly(kotlin("stdlib")) |
| 43 | + compileOnly(kotlin("reflect")) |
45 | 44 |
|
46 |
| - api("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT") |
| 45 | + compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT") |
47 | 46 |
|
48 | 47 | testRuntime("org.junit.platform:junit-platform-launcher:1.3.2")
|
49 | 48 | testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.2")
|
50 | 49 | testRuntime("org.junit.vintage:junit-vintage-engine:5.3.2")
|
| 50 | + |
| 51 | + testRuntime("org.mockito:mockito-core:2.24.0") |
51 | 52 | }
|
52 | 53 |
|
53 | 54 | tasks.withType<Test> {
|
@@ -79,7 +80,7 @@ subprojects {
|
79 | 80 |
|
80 | 81 | publishing {
|
81 | 82 | publications {
|
82 |
| - register("mavenJava", MavenPublication::class) { |
| 83 | + create<MavenPublication>("maven") { |
83 | 84 | from(components["java"])
|
84 | 85 | artifact(sources.get())
|
85 | 86 | groupId = project.group.toString()
|
@@ -108,9 +109,6 @@ subprojects {
|
108 | 109 | }
|
109 | 110 | appendNode("scm").appendNode("url", "https://github.com/DevSrSouza/KotlinBukkitAPI/tree/master/${project.name}")
|
110 | 111 | }
|
111 |
| - asElement().apply { |
112 |
| - getElementsByTagName("dependencies")?.item(0)?.also { removeChild(it) } |
113 |
| - } |
114 | 112 | }
|
115 | 113 | }
|
116 | 114 | }
|
|
0 commit comments