Skip to content

Commit

Permalink
Update maven release files
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyun Kim <[email protected]>
  • Loading branch information
ksh8281 committed Nov 14, 2024
1 parent 6d2dd5e commit 5080ea5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
30 changes: 29 additions & 1 deletion build/android/escargot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
plugins {
id 'com.android.library'
id 'jacoco'
id 'maven-publish'
}

ext {
force64Option = System.getProperty("ESCARGOT_BUILD_64BIT_FORCE_LARGE", "OFF")
force64Option = System.getProperty("ESCARGOT_BUILD_64BIT_FORCE_LARGE", "ON")
}

android {
Expand Down Expand Up @@ -87,6 +88,33 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

publishing {
singleVariant("release") {
// if you don't want sources/javadoc, remove these lines
withSourcesJar()
withJavadocJar()
}
}
}

publishing {
publications {
release(MavenPublication) {
afterEvaluate {
from components.release
}
artifactId "escargot-android"
groupId "com.samsung.lwe.escargot"
version "X.X.X.20XXXXXX.X.XXXXXXXX"
}
}

repositories {
maven {
url "/XXXXXX/android/releases/"
}
}
}

def dirForNativeNoNDK = project.layout.buildDirectory.get().dir("native_nondk")
Expand Down
1 change: 1 addition & 0 deletions build/android/publish/android-example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew publish
2 changes: 2 additions & 0 deletions build/android/publish/mac-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./gradlew bundleHostJar
MAVEN_OPTS="-Dmaven.repo.local=${MAVEN_LOCAL_PATH}/mac/releases/" mvn install:install-file -Dfile=${HOME}/escargot/build/libs/escargot.jar -DgroupId=com.samsung.lwe.escargot -DartifactId=escargot-mac -Dversion==X.X.X.20XXXXXX.X.XXXXXXX -Dpackaging=jar
2 changes: 2 additions & 0 deletions build/android/publish/ubuntu-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./gradlew bundleHostJar
MAVEN_OPTS="-Dmaven.repo.local=${MAVEN_LOCAL_PATH}/ubuntu/releases/" mvn install:install-file -Dfile=${PWD}/escargot/build/libs/escargot.jar -DgroupId=com.samsung.lwe.escargot -DartifactId=escargot-ubuntu -Dversion=X.X.X.20XXXXXX.X.XXXXXXX -Dpackaging=jar

0 comments on commit 5080ea5

Please sign in to comment.