Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.0.2 #1

Merged
merged 11 commits into from
Sep 26, 2023
Merged
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
Loading