|
|
@ -9,7 +9,7 @@ plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
group 'org.inksnow.husk'
|
|
|
|
group 'net.william278'
|
|
|
|
version "$ext.library_version${versionMetadata()}"
|
|
|
|
version "$ext.library_version${versionMetadata()}"
|
|
|
|
description "$ext.library_description"
|
|
|
|
description "$ext.library_description"
|
|
|
|
defaultTasks 'licenseFormat', 'build'
|
|
|
|
defaultTasks 'licenseFormat', 'build'
|
|
|
@ -21,12 +21,30 @@ ext {
|
|
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
if (System.getenv("RELEASES_MAVEN_USERNAME") != null) {
|
|
|
|
name = 'husk-release'
|
|
|
|
maven {
|
|
|
|
url = findProperty("repository.huskrelease.url")
|
|
|
|
name = "william278-releases"
|
|
|
|
credentials {
|
|
|
|
url = "https://repo.william278.net/releases"
|
|
|
|
username = findProperty("repository.huskrelease.username")
|
|
|
|
credentials {
|
|
|
|
password = findProperty("repository.huskrelease.password")
|
|
|
|
username = System.getenv("RELEASES_MAVEN_USERNAME")
|
|
|
|
|
|
|
|
password = System.getenv("RELEASES_MAVEN_PASSWORD")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
authentication {
|
|
|
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (System.getenv("SNAPSHOTS_MAVEN_USERNAME") != null) {
|
|
|
|
|
|
|
|
maven {
|
|
|
|
|
|
|
|
name = "william278-snapshots"
|
|
|
|
|
|
|
|
url = "https://repo.william278.net/snapshots"
|
|
|
|
|
|
|
|
credentials {
|
|
|
|
|
|
|
|
username = System.getenv("SNAPSHOTS_MAVEN_USERNAME")
|
|
|
|
|
|
|
|
password = System.getenv("SNAPSHOTS_MAVEN_PASSWORD")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
authentication {
|
|
|
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -38,7 +56,7 @@ allprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileJava.options.release.set 8
|
|
|
|
compileJava.options.release.set 17
|
|
|
|
javadoc.options.encoding = 'UTF-8'
|
|
|
|
javadoc.options.encoding = 'UTF-8'
|
|
|
|
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
|
|
|
|
|
|
|
@ -116,7 +134,7 @@ subprojects {
|
|
|
|
if (['common'].contains(project.name)) {
|
|
|
|
if (['common'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaCommon(MavenPublication) {
|
|
|
|
mavenJavaCommon(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-common'
|
|
|
|
artifactId = 'uniform-common'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -129,7 +147,7 @@ subprojects {
|
|
|
|
if (['paper'].contains(project.name)) {
|
|
|
|
if (['paper'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaPaper(MavenPublication) {
|
|
|
|
mavenJavaPaper(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-paper'
|
|
|
|
artifactId = 'uniform-paper'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -142,7 +160,7 @@ subprojects {
|
|
|
|
if (['bukkit'].contains(project.name)) {
|
|
|
|
if (['bukkit'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaBukkit(MavenPublication) {
|
|
|
|
mavenJavaBukkit(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-bukkit'
|
|
|
|
artifactId = 'uniform-bukkit'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -155,7 +173,7 @@ subprojects {
|
|
|
|
if (['velocity'].contains(project.name)) {
|
|
|
|
if (['velocity'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaVelocity(MavenPublication) {
|
|
|
|
mavenJavaVelocity(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-velocity'
|
|
|
|
artifactId = 'uniform-velocity'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -168,7 +186,7 @@ subprojects {
|
|
|
|
if (['fabric-1.20.1'].contains(project.name)) {
|
|
|
|
if (['fabric-1.20.1'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaFabric1_20_1(MavenPublication) {
|
|
|
|
mavenJavaFabric1_20_1(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
version = "${rootProject.version}+1.20.1"
|
|
|
|
version = "${rootProject.version}+1.20.1"
|
|
|
|
artifact remapJar
|
|
|
|
artifact remapJar
|
|
|
@ -181,7 +199,7 @@ subprojects {
|
|
|
|
if (['fabric-1.21'].contains(project.name)) {
|
|
|
|
if (['fabric-1.21'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaFabric1_21(MavenPublication) {
|
|
|
|
mavenJavaFabric1_21(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
version = "${rootProject.version}+1.21"
|
|
|
|
version = "${rootProject.version}+1.21"
|
|
|
|
artifact remapJar
|
|
|
|
artifact remapJar
|
|
|
@ -194,7 +212,7 @@ subprojects {
|
|
|
|
if (['sponge-11'].contains(project.name)) {
|
|
|
|
if (['sponge-11'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenSponge11(MavenPublication) {
|
|
|
|
mavenSponge11(MavenPublication) {
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
artifactId = 'uniform-sponge'
|
|
|
|
artifactId = 'uniform-sponge'
|
|
|
|
version = "${rootProject.version}+11"
|
|
|
|
version = "${rootProject.version}+11"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
|