deployment setup
This commit is contained in:
parent
89a92dc8cd
commit
8a051c3497
3 changed files with 38 additions and 2 deletions
|
|
@ -10,3 +10,6 @@ java {
|
||||||
|
|
||||||
sourceCompatibility = "8"
|
sourceCompatibility = "8"
|
||||||
targetCompatibility = "8"
|
targetCompatibility = "8"
|
||||||
|
|
||||||
|
project.ext.set("library_artifact","annotation")
|
||||||
|
apply from: "../deploy.gradle"
|
||||||
30
deploy.gradle
Normal file
30
deploy.gradle
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -30,3 +30,6 @@ dependencies {
|
||||||
|
|
||||||
sourceCompatibility = "8"
|
sourceCompatibility = "8"
|
||||||
targetCompatibility = "8"
|
targetCompatibility = "8"
|
||||||
|
|
||||||
|
project.ext.set("library_artifact","annotation-processor")
|
||||||
|
apply from: "../deploy.gradle"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue