java-tutorials/gradle-modules/gradle-7/multiple-repositories-demo/multiple-repositories/build.gradle

30 lines
621 B
Groovy
Raw Normal View History

plugins {
id 'java'
}
group = "com.baeldung.gradle"
version = "1.0.0-SNAPSHOT"
sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
mavenCentral()
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/eugenp/tutorials"
credentials {
username = project.USERNAME
password = project.GITHUB_TOKEN
}
}
}
dependencies {
implementation('com.baeldung.gradle:publish-package:1.0.0-SNAPSHOT')
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.0")
}
tasks.named('test') {
useJUnitPlatform()
}