#Gradle / Compilation issue?

1 messages · Page 1 of 1 (latest)

left river
#

So im trying to compile a subproject (specifically commons and it doesn't make the jar for some reasonJust this

desert iceBOT
#

<@&1008423204219531294> please have a look, thanks.

desert iceBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

left river
#

This is my overall build.gradle.kits file

plugins {
    id("java")
    id("org.jetbrains.kotlin.jvm") version "1.6.10"
    id("org.jetbrains.kotlin.kapt") version "1.6.10"
    id("com.github.johnrengelman.shadow") version "7.1.2"
}

allprojects {
    group = "ltd.matrixstudios"
    version = "1.0-SNAPSHOT"

    repositories {
        mavenCentral()
        mavenLocal()

        maven("https://jitpack.io")
        maven("https://repo.enonic.com/public/")
        maven("https://oss.sonatype.org/content/groups/public/")
        maven("https://repo.aikar.co/content/groups/aikar/")
        maven("https://papermc.io/repo/repository/maven-public/")
        maven("https://hub.spigotmc.org/nexus/content/groups/public/")
    }
}

subprojects {
    apply(plugin = "java")
    apply(plugin = "org.jetbrains.kotlin.jvm")
    apply(plugin = "org.jetbrains.kotlin.kapt")
    apply(plugin = "com.github.johnrengelman.shadow")

    dependencies {
        implementation("org.jetbrains.kotlin:kotlin-stdlib")

        compileOnly("org.projectlombok:lombok:1.18.22")
        kapt("org.projectlombok:lombok:1.18.22")

        implementation("com.google.code.gson:gson:2.9.0")
        implementation("org.mongodb:mongo-java-driver:3.12.10")
        implementation("redis.clients:jedis:4.3.1")

        implementation(fileTree(mapOf("include" to listOf("*.jar"), "dir" to "lib")))
    }
}

desert iceBOT
# left river This is my overall build.gradle.kits file ```kts plugins { id("java") ...

Detected code, here are some useful tools:

Formatted code
plugins {
  id("java") id("org.jetbrains.kotlin.jvm") version"1.6.10"id("org.jetbrains.kotlin.kapt") version"1.6.10"id("com.github.johnrengelman.shadow") version"7.1.2"}
allprojects {
  group = "ltd.matrixstudios"version = "1.0-SNAPSHOT"repositories {
    mavenCentral() mavenLocal() maven("https://jitpack.io") maven("https://repo.enonic.com/public/") maven("https://oss.sonatype.org/content/groups/public/") maven("https://repo.aikar.co/content/groups/aikar/") maven("https://papermc.io/repo/repository/maven-public/") maven("https://hub.spigotmc.org/nexus/content/groups/public/") }
}
subprojects {
  apply(plugin = "java") apply(plugin = "org.jetbrains.kotlin.jvm") apply(plugin = "org.jetbrains.kotlin.kapt") apply(plugin = "com.github.johnrengelman.shadow") dependencies {
    implementation("org.jetbrains.kotlin:kotlin-stdlib") compileOnly("org.projectlombok:lombok:1.18.22") kapt("org.projectlombok:lombok:1.18.22") implementation("com.google.code.gson:gson:2.9.0") implementation("org.mongodb:mongo-java-driver:3.12.10") implementation("redis.clients:jedis:4.3.1") implementation(fileTree(mapOf("include"to listOf("*.jar"), "dir"to"lib"))) }
}
left river
#

Fixed by clearing gradle cache