Skip to content

Commit

Permalink
Add configuration for maven-publish (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Hayoung Jeong <[email protected]>
  • Loading branch information
DrumRobot authored Sep 6, 2023
1 parent 467b577 commit 7328bea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ariesframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10'
id "org.jlleitschuh.gradle.ktlint" version '11.4.2'
id 'de.undercouch.download' version '5.4.0'
id 'maven-publish'
}

task downloadIndyLibs(type: Download) {
Expand All @@ -17,6 +18,7 @@ task unzipIndyLibs(type: Copy) {
into 'src/main'
}
preBuild.dependsOn unzipIndyLibs
runKtlintCheckOverMainSourceSet.dependsOn unzipIndyLibs

android {
namespace 'org.hyperledger.ariesframework'
Expand All @@ -43,6 +45,11 @@ android {
kotlinOptions {
jvmTarget = '11'
}
publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

ktlint {
Expand Down Expand Up @@ -73,4 +80,17 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.0"
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId 'org.hyperledger'
artifactId 'aries-framework-kotlin'
version '1.0.0'
}
}
}
}

0 comments on commit 7328bea

Please sign in to comment.