36 lines
733 B
Groovy
36 lines
733 B
Groovy
plugins {
|
|
id "maven-publish"
|
|
id "java"
|
|
}
|
|
|
|
group = "com.baeldung.gradle"
|
|
version = "1.0.0-SNAPSHOT"
|
|
sourceCompatibility = "1.8"
|
|
targetCompatibility = "1.8"
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register("jar", MavenPublication) {
|
|
from(components["java"])
|
|
pom {
|
|
url.set("https://github.com/eugenp/tutorials.git")
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = "https://maven.pkg.github.com/eugenp/tutorials"
|
|
credentials {
|
|
username = project.USERNAME
|
|
password = project.GITHUB_TOKEN
|
|
}
|
|
}
|
|
}
|
|
}
|