|
@@ -46,14 +46,18 @@ java {
|
46
|
46
|
|
47
|
47
|
task<Test>("itest") {
|
48
|
48
|
group = "verification"
|
49
|
|
- testClassesDirs = java.sourceSets.getByName("itest").output.classesDirs
|
50
|
|
- classpath = java.sourceSets.getByName("itest").runtimeClasspath
|
|
49
|
+ testClassesDirs = sourceSets["itest"].output.classesDirs
|
|
50
|
+ classpath = sourceSets["itest"].runtimeClasspath
|
51
|
51
|
}
|
52
|
52
|
|
53
|
53
|
task<Jar>("sourceJar") {
|
54
|
54
|
description = "Creates a JAR that contains the source code."
|
55
|
|
- from(java.sourceSets["main"].allSource)
|
56
|
|
- classifier = "sources"
|
|
55
|
+ from(sourceSets["main"].allSource)
|
|
56
|
+ archiveClassifier.set("sources")
|
|
57
|
+}
|
|
58
|
+
|
|
59
|
+tasks.withType<Wrapper> {
|
|
60
|
+ gradleVersion = "5.1.1"
|
57
|
61
|
}
|
58
|
62
|
|
59
|
63
|
tasks.withType<KotlinCompile> {
|
|
@@ -91,7 +95,7 @@ publishing {
|
91
|
95
|
root.appendNode("description", "Kotlin library for connecting to and interacting with IRC")
|
92
|
96
|
|
93
|
97
|
val dependenciesNode = root.appendNode("dependencies")
|
94
|
|
- configurations.implementation.allDependencies.forEach {
|
|
98
|
+ configurations.implementation.get().allDependencies.forEach {
|
95
|
99
|
val dependencyNode = dependenciesNode.appendNode("dependency")
|
96
|
100
|
dependencyNode.appendNode("groupId", it.group)
|
97
|
101
|
dependencyNode.appendNode("artifactId", it.name)
|