Plex/build.gradle

73 lines
1.8 KiB
Groovy
Raw Normal View History

2022-04-24 04:42:01 +00:00
plugins {
id "java"
id "maven-publish"
id "com.github.johnrengelman.shadow" version "7.1.2"
2022-04-24 04:42:01 +00:00
}
group = "dev.plex"
2022-08-26 02:18:53 +00:00
version = "1.3-SNAPSHOT"
2022-04-24 04:42:01 +00:00
description = "Plex"
2022-04-24 05:01:19 +00:00
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "com.github.johnrengelman.shadow"
2022-04-24 04:42:01 +00:00
2022-04-24 05:01:19 +00:00
repositories {
maven {
2022-05-22 01:49:34 +00:00
url = uri("https://repo.papermc.io/repository/maven-public/")
2022-04-24 05:01:19 +00:00
}
2022-04-24 04:42:01 +00:00
2022-04-24 05:01:19 +00:00
maven {
url = uri("https://repository.apache.org/content/repositories/snapshots/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven {
url = uri("https://jitpack.io")
content {
includeGroup("com.github.MilkBowl")
2022-04-24 04:42:01 +00:00
}
}
2022-04-24 05:01:19 +00:00
mavenCentral()
2022-04-24 04:42:01 +00:00
}
2022-04-24 05:01:19 +00:00
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
publishing {
repositories {
maven {
def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/")
def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
url = rootProject.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
2022-04-24 04:42:01 +00:00
}
}
}
}
clean {
dependsOn(":server:clean")
2022-05-05 06:38:23 +00:00
dependsOn(":proxy:clean")
}
task copyJars(type: Copy, dependsOn: subprojects.jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(subprojects.jar)
from(subprojects.shadowJar)
into project.file('build/libs')
2022-06-14 05:17:19 +00:00
}