mirror of
https://github.com/plexusorg/Plex.git
synced 2024-10-31 17:17:12 +00:00
175c7db23d
Remove every trace of MongoDB Fix issue where notes were not being notified on a permissions based system
73 lines
1.8 KiB
Groovy
73 lines
1.8 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "maven-publish"
|
|
id "com.github.johnrengelman.shadow" version "8.1.1"
|
|
}
|
|
|
|
group = "dev.plex"
|
|
version = "1.4-SNAPSHOT"
|
|
description = "Plex"
|
|
|
|
subprojects {
|
|
apply plugin: "java"
|
|
apply plugin: "maven-publish"
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
|
|
repositories {
|
|
maven {
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
|
|
mavenCentral()
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
clean {
|
|
dependsOn(":server:clean")
|
|
dependsOn(":proxy:clean")
|
|
}
|
|
|
|
task copyJars(type: Copy, dependsOn: subprojects.jar) {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
from(subprojects.jar)
|
|
from(subprojects.shadowJar)
|
|
into project.file('build/libs')
|
|
}
|