30 lines
No EOL
756 B
Groovy
30 lines
No EOL
756 B
Groovy
apply plugin: 'maven-publish'
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
|
|
groupId "org.fnives.library.reloadable.module"
|
|
version "0.1.0"
|
|
artifactId "$library_artifact"
|
|
artifact sourcesJar
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/fknives/ReloadableHiltModule")
|
|
credentials {
|
|
username = System.getenv("GITHUB_USERNAME")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
} |