Code:
allprojects {
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
}
if your using java dependencies you will also have to apply the java plugin here as well
Not sure if your building with kotlin or groovy i use kotlin so looks like this
Code:
plugins {
id("java")
}
group = "com.jagex"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
allprojects {
apply(plugin = "java")
dependencies {
implementation("org.slf4j:slf4j-api:2.0.0-beta1")
implementation("org.slf4j:slf4j-jdk14:2.0.0-beta1")
implementation("com.google.guava:guava:31.1-jre")
implementation("io.netty:netty-all:4.1.79.Final")
}
}
dependencies {
implementation(project(":JS5_Cache"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
Also make sure not to share other module depenecies this way or you can end up with a depenency loop you going to want to implement them for each individual modules gradle build file