publishing multi-release-jar
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath(group = "net.woggioni.plugins", name = "multi-release-jar", version = property("net.woggioni.plugins.version") as String)
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
apply<net.woggioni.plugins.multi.release.jar.MultiReleaseJarPlugin>()
|
||||
|
||||
group = "net.woggioni"
|
||||
version = "0.1"
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("myLibrary") {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
@@ -33,7 +30,6 @@ fun property(name : String) = project.property(name).toString()
|
||||
dependencies {
|
||||
implementation("net.java.dev.jna", "jna", property("jna.version"))
|
||||
|
||||
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
||||
compileOnly("org.projectlombok", "lombok", property("lombok.version"))
|
||||
annotationProcessor("org.projectlombok", "lombok", property("lombok.version"))
|
||||
|
||||
@@ -44,8 +40,16 @@ dependencies {
|
||||
testImplementation("org.junit.jupiter","junit-jupiter-params", property("junit.version"))
|
||||
}
|
||||
|
||||
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user