Update build.gradle.kts
This commit is contained in:
@@ -69,7 +69,17 @@ subprojects {
|
|||||||
if (System.getenv("JITPACK") != null)
|
if (System.getenv("JITPACK") != null)
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
maven(url = "https://jitpack.io")
|
exclusiveContent {
|
||||||
|
forRepository {
|
||||||
|
maven {
|
||||||
|
url = uri("https://jitpack.io")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
includeGroup("com.github.petitparser.java-petitparser")
|
||||||
|
includeModule("com.github.petitparser", "java-petitparser")
|
||||||
|
}
|
||||||
|
}
|
||||||
maven(url = "https://mvnrepository.com/artifact")
|
maven(url = "https://mvnrepository.com/artifact")
|
||||||
|
|
||||||
exclusiveContent {
|
exclusiveContent {
|
||||||
@@ -125,6 +135,15 @@ subprojects {
|
|||||||
maven {
|
maven {
|
||||||
url = uri("$buildDir/repo")
|
url = uri("$buildDir/repo")
|
||||||
}
|
}
|
||||||
|
if (System.getProperty("REPO-URL") != null) {
|
||||||
|
maven {
|
||||||
|
url = uri(System.getProperty("REPO-URL"))
|
||||||
|
credentials {
|
||||||
|
username = System.getProperty("REPO-USERNAME")
|
||||||
|
password = System.getProperty("REPO-PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
publications {
|
publications {
|
||||||
register("mavenJava", MavenPublication::class) {
|
register("mavenJava", MavenPublication::class) {
|
||||||
@@ -137,6 +156,8 @@ subprojects {
|
|||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
|
|
||||||
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
withType<JavaCompile> {
|
withType<JavaCompile> {
|
||||||
|
|||||||
Reference in New Issue
Block a user