mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-12-31 21:37:51 +01:00
updated build to use maven publish plugin
This commit is contained in:
parent
300eb64d89
commit
77d0654a29
15
build.gradle
15
build.gradle
@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id "java"
|
id "java"
|
||||||
|
id "maven-publish"
|
||||||
id "net.minecrell.licenser" version "0.4.1"
|
id "net.minecrell.licenser" version "0.4.1"
|
||||||
id "com.github.johnrengelman.shadow" version "6.0.0"
|
id "com.github.johnrengelman.shadow" version "6.0.0"
|
||||||
}
|
}
|
||||||
@ -77,3 +78,17 @@ sourceSets {
|
|||||||
test.compileClasspath += configurations.compileOnly
|
test.compileClasspath += configurations.compileOnly
|
||||||
test.runtimeClasspath += configurations.compileOnly
|
test.runtimeClasspath += configurations.compileOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
maven(MavenPublication) {
|
||||||
|
groupId = project.group
|
||||||
|
artifactId = project.name
|
||||||
|
version = project.version.toString()
|
||||||
|
|
||||||
|
from(components.java)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
publishToMavenLocal.dependsOn clean, test, jar
|
||||||
|
Loading…
Reference in New Issue
Block a user