Skip to content

Commit

Permalink
build: Move subproject to root project
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 14, 2023
1 parent 4456031 commit c38f0ef
Show file tree
Hide file tree
Showing 85 changed files with 70 additions and 985 deletions.
97 changes: 69 additions & 28 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension

plugins {
kotlin("jvm") version "1.9.0"
alias(libs.plugins.binary.compatibility.validator)
Expand All @@ -8,38 +6,81 @@ plugins {
java
}

val publicationVersion = project.version.toString()

subprojects {
apply(plugin = "maven-publish")
apply(plugin = "signing")
apply(plugin = "java")
apply(plugin ="kotlin")

version = pulicationVersion
group = "app.revanced"

repositories {
mavenCentral()
mavenLocal()
maven { url = uri("https://jitpack.io") }
google()
tasks {
processResources {
expand("projectVersion" to project.version)
}

java {
withJavadocJar()
withSourcesJar()
test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
}
}

configure<KotlinJvmProjectExtension> {
kotlin { jvmToolchain(11) }
}
repositories {
mavenCentral()
mavenLocal()
maven { url = uri("https://jitpack.io") }
google()
}

dependencies {
implementation(libs.kotlinx.coroutines.core)
implementation(libs.xpp3)
implementation(libs.smali)
implementation(libs.multidexlib2)
implementation(libs.apktool.lib)
implementation(libs.kotlin.reflect)

tasks {
test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
compileOnly(libs.android)

testImplementation(libs.kotlin.test)
}

java {
withJavadocJar()
withSourcesJar()
}

kotlin {
jvmToolchain(11)
}

publishing {
publications {
create<MavenPublication>("revanced-patcher-publication") {
from(components["java"])

version = project.version.toString()

pom {
name = "ReVanced Patcher"
description = "Patcher used by ReVanced."
url = "https://revanced.app"

licenses {
license {
name = "GNU General Public License v3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.en.html"
}
}
developers {
developer {
id = "ReVanced"
name = "ReVanced"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/revanced/revanced-patcher.git"
developerConnection = "scm:git:[email protected]:revanced/revanced-patcher.git"
url = "https://github.com/revanced/revanced-patcher"
}
}
}
}
}
}
904 changes: 0 additions & 904 deletions revanced-patcher/api/revanced-patcher.api

This file was deleted.

51 changes: 0 additions & 51 deletions revanced-patcher/build.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion revanced-patcher/settings.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include("revanced-patcher")
rootProject.name = "revanced-patcher"

0 comments on commit c38f0ef

Please sign in to comment.