Skip to content

Commit

Permalink
Kevlar 1.0.0!
Browse files Browse the repository at this point in the history
- Changed gradle publishing plugin to `io.github.gradle-nexus.publish-plugin` and s01 sonatype repository support;
- Updated all references for the new (and horrible) group id `io.github.kevlar-kt` across code, settings and documentation;
- Removed useless run configs;
- Added script to automatize deployment, so I can keep my mental sanity;
- Downgraded gradle version to 7.4.2 for stability with AGP.
  • Loading branch information
cioccarellia committed Jul 22, 2022
1 parent bddb4d7 commit ff63341
Show file tree
Hide file tree
Showing 28 changed files with 381 additions and 422 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/Bug_report.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/Feature_request.md

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_complex_numbers__assemble_debug_aar.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_complex_numbers__assemble_release_aar.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_complex_numbers__test.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_project__dependencyUpdates.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_project__test.xml

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/runConfigurations/_remote__closeAndReleaseRepository.xml

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/runConfigurations/_remote__closeRepository.xml

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/runConfigurations/_remote__releaseRepository.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/runConfigurations/_sample__test.xml

This file was deleted.

12 changes: 6 additions & 6 deletions antipiracy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ext.module_name = "antipiracy"

project.ext.set("module_${ext.module_name}", new ModuleArtifactCoordinates(
// PUBLISH_GROUP_ID
"com.kevlar",
"io.github.kevlar-kt",

// PUBLISH_ARTIFACT_ID
"antipiracy",
Expand All @@ -45,7 +45,7 @@ project.ext.set("module_${ext.module_name}", new ModuleArtifactCoordinates(
"1.0.0",

// PUBLISH_ARTIFACT_DESC
"Antipiracy",
"Kevlar Antipiracy",

// PUBLISH_ARTIFACT_WEBSITE
"https://github.com/kevlar-kt/kevlar"
Expand All @@ -54,9 +54,6 @@ project.ext.set("module_${ext.module_name}", new ModuleArtifactCoordinates(
// Android library script
apply from: rootProject.file("scripts/commons/library_config.gradle")

// TODO Turn on and run release script to publish library. Turn off afterward.
// apply from: rootProject.file("scripts/publishing/publish_mavencentral.gradle")


/**
* Library versioning
Expand Down Expand Up @@ -96,4 +93,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
//'-opt-in=kotlin.RequiresOptIn',
]
}
}
}

// Publishing file
apply from: "${rootDir}/scripts/publishing/publish-module-antipiracy.gradle"
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply from: rootProject.file("scripts/custom/versions.gradle")
apply plugin: 'io.codearte.nexus-staging'
apply plugin: 'io.github.gradle-nexus.publish-plugin'

buildscript {
ext {
Expand All @@ -18,7 +18,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.ben-manes:gradle-versions-plugin:0.42.0"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.42'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
}
}

Expand All @@ -43,4 +43,6 @@ subprojects {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
}

apply from: "${rootDir}/scripts/publishing/publish-root.gradle"
6 changes: 3 additions & 3 deletions docs/pages/modules/antipiracy/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ A working example for the antipiracy module can be found in the github repositor

``` java
dependencies {
implementation "com.github.kevlar-kt:antipiracy:1.0.0"
implementation "io.github.kevlar-kt:antipiracy:1.0.0"
}
```

??? gradle "Kotlin DSL"

``` kotlin
dependencies {
implementation("com.github.kevlar-kt:antipiracy:1.0.0")
implementation("io.github.kevlar-kt:antipiracy:1.0.0")
}
```

??? gradle "Maven"

``` xml
<dependency>
<groupId>com.github.kevlar-kt</groupId>
<groupId>io.github.kevlar-kt</groupId>
<artifactId>antipiracy</artifactId>
<version>1.0.0</version>
<type>pom</type>
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/modules/integrity/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ A working example for the integrity module can be found in the github repository

``` java
dependencies {
implementation "com.github.kevlar-kt:integrity:1.0.0"
implementation "io.github.kevlar-kt:integrity:1.0.0"
}
```

??? gradle "Kotlin DSL"

``` kotlin
dependencies {
implementation("com.github.kevlar-kt:integrity:1.0.0")
implementation("io.github.kevlar-kt:integrity:1.0.0")
}
```

??? gradle "Maven"

``` xml
<dependency>
<groupId>com.github.kevlar-kt</groupId>
<groupId>io.github.kevlar-kt</groupId>
<artifactId>integrity</artifactId>
<version>1.0.0</version>
<type>pom</type>
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/modules/rooting/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ A working example for the rooting module can be found in the github repository u

``` java
dependencies {
implementation "com.github.kevlar-kt:rooting:1.0.0"
implementation "io.github.kevlar-kt:rooting:1.0.0"
}
```

??? gradle "Kotlin DSL"

``` kotlin
dependencies {
implementation("com.github.kevlar-kt:rooting:1.0.0")
implementation("io.github.kevlar-kt:rooting:1.0.0")
}
```

??? gradle "Maven"

``` xml
<dependency>
<groupId>com.github.kevlar-kt</groupId>
<groupId>io.github.kevlar-kt</groupId>
<artifactId>rooting</artifactId>
<version>1.0.0</version>
<type>pom</type>
Expand Down
Loading

0 comments on commit ff63341

Please sign in to comment.