Plex/build.gradle

54 lines
1.4 KiB
Groovy
Raw Normal View History

group = "dev.plex"
2022-04-09 05:05:06 +00:00
version = "1.0.1-SNAPSHOT"
2022-04-09 05:14:36 +00:00
2022-04-10 04:51:27 +00:00
allprojects {
apply plugin: 'java'
apply plugin: "maven-publish"
repositories {
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
2022-01-04 03:53:22 +00:00
2022-04-10 04:51:27 +00:00
maven {
url = uri("https://repository.apache.org/content/repositories/snapshots/")
2022-03-26 22:22:08 +00:00
}
2022-04-10 04:51:27 +00:00
maven {
url = uri("https://repo.maven.apache.org/maven2/")
2022-03-26 22:22:08 +00:00
}
2022-04-10 04:51:27 +00:00
mavenCentral()
}
2022-03-26 22:22:08 +00:00
2022-04-10 04:51:27 +00:00
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
2022-03-26 21:36:29 +00:00
}
2022-04-10 04:51:27 +00:00
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
2022-01-04 03:53:22 +00:00
2022-04-10 04:51:27 +00:00
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
2022-04-10 04:51:27 +00:00
repositories {
maven {
def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/")
def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
2022-03-31 06:54:25 +00:00
}
}
}
2022-02-22 02:19:41 +00:00
}
2022-04-10 04:51:27 +00:00
task copyJars(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.jar)
into project.file('jars')
}