Skip to content

Commit

Permalink
I don't know how to read build scripts sometimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-6 committed Nov 27, 2024
1 parent 71ddd8a commit aeffeb9
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,31 @@ allprojects {
throw IllegalStateException("Version is not set, please run 'git fetch --tags' command to fetch tags from main repository.")
}


repositories {
maven("https://mvn.littleoni.net/releases") {
maven("https://maven.reposilite.com/maven-central") {
mavenContent {
releasesOnly()
}
}
maven("https://maven.reposilite.com/releases") {
mavenContent {
releasesOnly()
}
}
maven("https://mvn.littleoni.net/snapshots") {
maven("https://maven.reposilite.com/snapshots") {
mavenContent {
snapshotsOnly()
}
}
maven("https://jitpack.io") {
mavenContent {
releasesOnly()
}
}
}


java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
Expand All @@ -103,7 +115,8 @@ allprojects {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
languageVersion = KotlinVersion.KOTLIN_1_9
freeCompilerArgs = listOf("-Xjvm-default=all") // For generating default methods in interfaces
freeCompilerArgs =
listOf("-Xjvm-default=all") // For generating default methods in interfaces
}
}
}
Expand Down Expand Up @@ -132,9 +145,9 @@ subprojects {
publishing {
repositories {
maven {
name = "panda-repository"
name = "LittleOniMaven"
url = uri(
"https://maven.reposilite.com/${
"https://mvn.littleoni.net/${
if (version.toString().endsWith("-SNAPSHOT")) "snapshots" else "releases"
}"
)
Expand Down

0 comments on commit aeffeb9

Please sign in to comment.