Skip to content

Commit

Permalink
Set-up Maven Publish
Browse files Browse the repository at this point in the history
balazsgerlei committed Apr 18, 2024
1 parent ed3c103 commit cc628c8
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -2,4 +2,5 @@
plugins {
id 'com.android.application' version '8.3.2' apply false
id 'com.android.library' version '8.3.2' apply false
id 'maven-publish'
}
22 changes: 22 additions & 0 deletions library/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 {
@@ -20,10 +21,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
@@ -34,3 +43,16 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'dev.gerlot.securewebview'
artifactId = 'securewebview'
version = '1.0.0-alpha01'
}
}
}
}

0 comments on commit cc628c8

Please sign in to comment.