Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
chore: publish releases instead of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 13, 2022
1 parent 32589c8 commit cdc4e9c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 37 deletions.
14 changes: 11 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"gradle-semantic-release-plugin",
[
"@semantic-release/git",
{
Expand All @@ -20,6 +19,15 @@
]
}
],
"@semantic-release/github"
[
"@semantic-release/github",
{
"assets": [
{
"path": "build/libs/*.jar"
}
]
}
]
]
}
}
50 changes: 16 additions & 34 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
plugins {
kotlin("jvm") version "1.6.21"
kotlin("jvm") version "1.7.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
java
`maven-publish`
}

group = "app.revanced"

val githubUsername: String = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
val githubPassword: String = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")

repositories {
mavenCentral()
google()
mavenLocal()
maven {
url = uri("https://maven.pkg.github.com/revanced/multidexlib2")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
username = githubUsername
password = githubPassword
}
}
maven {
url = uri("https://jitpack.io")
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
credentials {
username = githubUsername
password = githubPassword
}
}
maven { url = uri("https://jitpack.io") }
google()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.7.0")
implementation("app.revanced:revanced-patcher:1.1.0")

implementation("info.picocli:picocli:4.6.3")
implementation("com.android.tools.build:apksig:7.2.1")
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
}

java {
withSourcesJar()
withJavadocJar()
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.0")
}

tasks {
Expand All @@ -50,22 +50,4 @@ tasks {
attributes("Implementation-Version" to project.version)
}
}
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/revanced/revanced-cli")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}
}

0 comments on commit cdc4e9c

Please sign in to comment.