Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: me.carleslc.Simple-YAML fails to resolve #83

Open
ConnorBP opened this issue Nov 7, 2024 · 0 comments
Open

Bug: me.carleslc.Simple-YAML fails to resolve #83

ConnorBP opened this issue Nov 7, 2024 · 0 comments

Comments

@ConnorBP
Copy link

ConnorBP commented Nov 7, 2024

Could you please switch to the standard gitpack group id? The custom domain version that this carl dude is pushing on people is known to be inconsistent and buggy and he just likes it because it "looks cleaner".

Gradle version: 7.4

Here is my gradle config for using your api for reference:

build.gradle:

plugins {
    id 'com.github.johnrengelman.shadow' version '6.1.0'
    id 'java'
}

sourceCompatibility = JavaLanguageVersion.of(java_version as int)
targetCompatibility = JavaLanguageVersion.of(java_version as int)

archivesBaseName = archives_base_name
version = plugin_version
group = maven_group

processResources {
    filesMatching("plugin.yml") {
        expand "version": plugin_version,
                "bukkit_api_version": bukkit_api_version
    }
}

dependencies {
    implementation 'com.github.mizosoft.methanol:methanol:1.7.0'
    implementation 'com.google.code.findbugs:jsr305:3.0.2'
    implementation 'org.apache.httpcomponents:httpclient:4.5.14'
    implementation 'org.apache.httpcomponents:httpasyncclient:4.1.5'
    implementation 'commons-io:commons-io:2.15.1'
    // To use this dependency, you need to compile bukkit by yourself
    // See https://www.spigotmc.org/wiki/buildtools/
    // implementation "org.bukkit:craftbukkit:${bukkit_version}"

    // Use this dependency if you don't want to compile bukkit
    implementation "io.papermc.paper:paper-api:${bukkit_version}"
    implementation "de.maxhenkel.voicechat:voicechat-api:${voicechat_api_version}"
    implementation "com.github.jensjeflensje:minecraft_imagery:${minecraft_imagery_api_version}"
    implementation "com.loohp:ImageFrame:${image_frame_api_version}"
	// implementation 'me.carleslc.Simple-YAML:Simple-Yaml:1.8.1'
    implementation 'com.google.code.gson:gson:2.10.1'
    implementation group: 'com.knuddels', name: 'jtokkit', version: '1.0.0'

}

repositories {
    mavenCentral()
    // for voice chat api
    maven {
        name = "henkelmax.public"
        url = 'https://maven.maxhenkel.de/repository/public'
    }
    // for ImageFrame api
    maven {
        name = "loohp-repo"
        url = "https://repo.loohpjames.com/repository"
    }
    // You need this maven repository if you want to use the paper dependency
    maven {
        url = uri("https://papermc.io/repo/repository/maven-public/")
    }
    // for github and stuff
    maven { url 'https://jitpack.io' }
    mavenLocal()
}

shadowJar {
    dependencies {
        include(dependency('org.apache.commons:.*'))
        include(dependency('com.google.code.gson:.*'))
        include(dependency('com.github.mizosoft.methanol:.*'))
        include(dependency('com.knuddels:.*'))
        include(dependency('org.apache.httpcomponents:.*'))
    }
}

gradle.properties:

org.gradle.jvmargs=-Xmx2G

java_version=21

bukkit_api_version=1.21
bukkit_version=1.21.1-R0.1-SNAPSHOT

# Target an older API to make it compatible with older versions of Simple Voice Chat
voicechat_api_version=2.5.0

# the api version for the server side rendering plugin
# used to let god look at structures and for the fun picture game mode
minecraft_imagery_api_version=1.2.1

# api version for the ImageFrame api version
# used to render camera pictures onto maps
image_frame_api_version=1.7.11.0

plugin_version=0.1.9
maven_group=net.bigyous.gptgodmc
archives_base_name=gptgodmc

build log:

Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find me.carleslc.Simple-YAML:Simple-Yaml:1.8.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
       - https://maven.maxhenkel.de/repository/public/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
       - https://repo.loohpjames.com/repository/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
       - https://papermc.io/repo/repository/maven-public/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
       - https://jitpack.io/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
       - file:/C:/Users/conno/.m2/repository/me/carleslc/Simple-YAML/Simple-Yaml/1.8.1/Simple-Yaml-1.8.1.pom
     Required by:
         project : > com.loohp:ImageFrame:1.7.11.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant