Skip to content

Commit

Permalink
Release/1.0.2 (#1)
Browse files Browse the repository at this point in the history
* -Update java version to 17

* feat(Release): Add publishing configs for release

* release: Disable minifyEnabled
  • Loading branch information
erenalpaslan authored Sep 26, 2023
1 parent fbd30ae commit 1e1e095
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/mave-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- 'release/**'

permissions: write-all

jobs:
publish:
name: Release RemoveBg Library
Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
tag_name: 1.0.2
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
Expand Down
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jdk:
- openjdk11
- openjdk17
27 changes: 18 additions & 9 deletions removebg/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
id("maven-publish")
`maven-publish`
}

android {
Expand All @@ -18,7 +18,7 @@ android {

buildTypes {
release {
isMinifyEnabled = true
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand All @@ -32,6 +32,13 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

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

dependencies {
Expand All @@ -46,15 +53,17 @@ dependencies {
androidTestImplementation(libs.espresso.core)
}

afterEvaluate {
publishing {
publications {
register("mavenJava", MavenPublication::class) {

publishing {
publications {
register<MavenPublication>("release") {
afterEvaluate {
from(components["release"])
groupId = "dev.eren"
artifactId = "removebg"
version = "1.0.0"
}

groupId = "dev.eren"
artifactId = "removebg"
version = "1.0.2"
}
}
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
maven("https://jitpack.io")
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}

Expand Down

0 comments on commit 1e1e095

Please sign in to comment.