#Issue with build.gradle.kts

19 messages · Page 1 of 1 (latest)

forest folio
#

I'm receiving this error when building

this is my script (build.gradle.kts file)

plugins {
    java
}

subprojects {
    group = "net.versemc.${project.name}"
    version = "1.0-DEV"

    repositories {
        mavenCentral()
    }

    dependencies {

        compileOnly("com.zaxxer:HikariCP:5.0.1")

        compileOnly("org.projectlombok:lombok:1.18.26")
        annotationProcessor("org.projectlombok:lombok:1.18.26")

        compileOnly("org.checkerframework:checker-qual:3.32.0")

        compileOnly("com.google.code.gson:gson:2.10.1")

        compileOnly("net.kyori:adventure-api:4.13.0")

    }

    java {
        sourceCompatibility = JavaVersion.VERSION_17 
        targetCompatibility = JavaVersion.VERSION_17
    }

}

ionic scrollBOT
#

This post has been reserved for your question.

Hey @forest folio! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

forest folio
#

anyone who is experienced with gradle, i would really appreciate it and thanks !

gleaming terrace
#

what's the complete error message?

gleaming terrace
#

try applying the java plugin for the subprojects as well

forest folio
gleaming terrace
#

what did you change?

forest folio
gleaming terrace
#

same error?

forest folio
#

exactly same error

gleaming terrace
#

maybe try ```kotlin
plugins{
java
}

inside your `subprojects`
forest folio
#

Fixed
the issue was that apply plugin wasn't inside the subProjects block

#

Thank you @gleaming terrace

ionic scrollBOT
# forest folio Thank you <@358291050957111296>

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

gleaming terrace
#

no problem