deployment setup

This commit is contained in:
Gergely Hegedus 2021-07-30 23:45:37 +03:00
parent 89a92dc8cd
commit 8a051c3497
3 changed files with 38 additions and 2 deletions

View file

@ -10,3 +10,6 @@ java {
sourceCompatibility = "8"
targetCompatibility = "8"
project.ext.set("library_artifact","annotation")
apply from: "../deploy.gradle"

30
deploy.gradle Normal file
View 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")
}
}
}
}

View file

@ -30,3 +30,6 @@ dependencies {
sourceCompatibility = "8"
targetCompatibility = "8"
project.ext.set("library_artifact","annotation-processor")
apply from: "../deploy.gradle"