Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions inventory/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -28,6 +29,12 @@ android {
viewBinding true
}
namespace 'org.flyve.inventory'

publishing {
singleVariant('release') {
withSourcesJar()
}
}
}

configurations {
Expand Down Expand Up @@ -56,6 +63,21 @@ dependencies {
}


afterEvaluate {
def packageJson = new groovy.json.JsonSlurper().parse(rootProject.file('package.json'))

publishing {
publications {
release(MavenPublication) {
from components.release
groupId = project.group ?: 'com.github.glpi-project'
artifactId = 'android-inventory-library'
version = project.version ?: packageJson.version
}
}
}
}

Properties properties = new Properties()
if(project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk17
Loading