Skip to content

Commit

Permalink
Fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
heychazza committed Apr 4, 2024
1 parent f395fb7 commit a18c4d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
21 changes: 12 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ subprojects {
plugins.apply("com.github.johnrengelman.shadow")

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.current().toString()))
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand All @@ -24,16 +24,13 @@ subprojects {
archiveFileName.set("${project.name}-analyse-${rootProject.version}.jar")
}

tasks {
compileJava {
options.encoding = "UTF-8"
}
}

repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/groups/staging/") {
name = "sonatype-staging-repo"
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-snapshots"
}
maven("https://mvn-repo.arim.space/lesser-gpl3/") {
name = "arim-repo"
}
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "spigotmc-repo"
Expand All @@ -50,6 +47,12 @@ subprojects {
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
name = "extendedclip-repo"
}
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-snapshots"
}
maven("https://maven.nucleoid.xyz/") {
name = "nucleoid"
}
}

tasks.named("processResources", Copy::class.java) {
Expand Down
2 changes: 1 addition & 1 deletion sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ val ossrhUsername = System.getenv("OSSRH_USERNAME") ?: properties["ossrhUsername
val ossrhPassword = System.getenv("OSSRH_PASSWORD") ?: properties["ossrhPassword"] as String?

dependencies {
implementation("com.intellectualsites.http:HTTP4J:1.4")
implementation("com.intellectualsites.http:HTTP4J:1.6-SNAPSHOT")
compileOnly("dev.dejvokep:boosted-yaml:1.3.2")
compileOnly("com.google.code.gson:gson:2.10.1")
compileOnly("com.google.guava:guava:33.0.0-jre")
Expand Down
4 changes: 0 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}

rootProject.name = "TebexAnalytics"

listOf("sdk", "bukkit", "bungeecord", "velocity").forEach {
Expand Down

0 comments on commit a18c4d6

Please sign in to comment.