Skip to content

Commit f810291

Browse files
committed
fix build error
1 parent d62d138 commit f810291

File tree

9 files changed

+23
-24
lines changed

9 files changed

+23
-24
lines changed

attributestorage/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ repositories {
66
}
77

88
dependencies {
9-
compileOnly(project(":core"))
9+
compileOnly(project(":core", configuration = "shadow"))
1010
compile("com.comphenix.attribute:AttributeStorage:0.0.2-SNAPSHOT")
1111
}

build.gradle.kts

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
22
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
3-
import org.apache.xerces.dom.DeepNodeListImpl
43
import org.gradle.api.tasks.bundling.Jar
54
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
65

@@ -40,14 +39,16 @@ subprojects {
4039
}
4140

4241
dependencies {
43-
api(kotlin("stdlib"))
44-
api(kotlin("reflect"))
42+
compileOnly(kotlin("stdlib"))
43+
compileOnly(kotlin("reflect"))
4544

46-
api("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
45+
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
4746

4847
testRuntime("org.junit.platform:junit-platform-launcher:1.3.2")
4948
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.2")
5049
testRuntime("org.junit.vintage:junit-vintage-engine:5.3.2")
50+
51+
testRuntime("org.mockito:mockito-core:2.24.0")
5152
}
5253

5354
tasks.withType<Test> {
@@ -79,7 +80,7 @@ subprojects {
7980

8081
publishing {
8182
publications {
82-
register("mavenJava", MavenPublication::class) {
83+
create<MavenPublication>("maven") {
8384
from(components["java"])
8485
artifact(sources.get())
8586
groupId = project.group.toString()
@@ -108,9 +109,6 @@ subprojects {
108109
}
109110
appendNode("scm").appendNode("url", "https://github.com/DevSrSouza/KotlinBukkitAPI/tree/master/${project.name}")
110111
}
111-
asElement().apply {
112-
getElementsByTagName("dependencies")?.item(0)?.also { removeChild(it) }
113-
}
114112
}
115113
}
116114
}

core/build.gradle.kts

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
// nothing to add
1+
repositories {
2+
maven {
3+
name = "okkero"
4+
url = uri("http://nexus.okkero.com/repository/maven-releases/")
5+
}
6+
}
27

3-
dependencies {}
8+
dependencies {
9+
compile("com.okkero.skedule:skedule:1.2.5")
10+
}

exposed/build.gradle.kts

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
repositories {
2-
maven {
3-
name = "perfectdreams"
4-
url = uri("https://repo.perfectdreams.net/")
5-
}
6-
}
7-
1+
repositories {}
82

93
dependencies {
10-
compileOnly(project(":core"))
11-
compileOnly(project(":attributestorage"))
4+
compileOnly(project(":core", configuration = "shadow"))
5+
compileOnly(project(":attributestorage", configuration = "shadow"))
126
compileOnly("org.jetbrains.exposed:exposed:0.11.2")
137
}

gradle/wrapper/gradle-wrapper.jar

861 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1-rc-1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ APP_NAME="Gradle"
2828
APP_BASE_NAME=`basename "$0"`
2929

3030
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
31+
DEFAULT_JVM_OPTS='"-Xmx64m"'
3232

3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"

gradlew.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
1414
set APP_HOME=%DIRNAME%
1515

1616
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
17+
set DEFAULT_JVM_OPTS="-Xmx64m"
1818

1919
@rem Find java.exe
2020
if defined JAVA_HOME goto findJavaFromJavaHome

plugins/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repositories {
2121
)
2222

2323
dependencies {
24-
compileOnly(project(":core"))
24+
compileOnly(project(":core", configuration = "shadow"))
2525

2626
// plugins
2727
compileOnly("net.milkbowl.vault:VaultAPI:1.6")

0 commit comments

Comments
 (0)