1.20.1 : I'm having problems with compiling the library.
deilyyxx opened this issue · comments
deilyyxx commented
When I'm trying to compile the library I keep getting an error about "Cannot find the X
dependency", here's the error: https://pastebin.com/gwLVQ1fm
And here's my build.gradle:
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'me.deilyyxx'
version = '0.1.0'
repositories {
mavenCentral()
mavenLocal()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven {
name = "aikar-repo"
url = "https://repo.aikar.co/content/groups/aikar/"
}
maven {
name = "nexus-repo"
url = "https://hub.spigotmc.org/nexus/content/groups/public/"
}
maven { url 'https://jitpack.io' }
add mavenLocal()
}
dependencies {
compileOnly "io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT"
implementation "me.deilyyxx:YuxLibrary:0.4.23"
implementation "co.aikar:acf-paper:0.5.1-SNAPSHOT"
implementation 'com.github.kangarko:Foundation:6.6.2'
}
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release.set(targetJavaVersion)
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
shadowJar {
destinationDirectory.set(file("C:\\Users\\Deilyyxx\\Desktop\\localhost\\plugins"))
relocate 'co.aikar.commands', 'me.deilyyxx.ml.fishing.acf'
relocate 'co.aikar.locales', 'me.deilyyxx.ml.fishing.locales'
}
build.dependsOn shadowJar
Matej commented
I assume you figured it out, but in case you did not I think you need to add our repository at "https://bitbucket.org/kangarko/libraries/raw/master" for it to find the dependencies.