Skip to content

Commit

Permalink
chore: update release workflow and modernize build (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso authored Dec 9, 2023
1 parent 29416f3 commit dc3a1d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
- uses: gradle/wrapper-validation-action@v1.0.4
- name: Set up JDK 17
uses: actions/setup-java@v2.3.1
with:
java-version: '17'
distribution: 'adopt'
- name: Create .gpg key
run: |
echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'com.android.tools.build:gradle:8.1.4'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.9.10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
classpath "com.google.dagger:hilt-android-gradle-plugin:2.48"
Expand Down Expand Up @@ -77,17 +77,17 @@ subprojects { project ->
toolVersion = "0.8.7"
}

tasks.withType(Test) {
tasks.withType(Test).configureEach {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}

task sourcesJar(type: Jar) {
tasks.register('sourcesJar', Jar) {
from android.sourceSets.main.java.source
archiveClassifier = "sources"
}

task javadocJar(type: Jar) {
tasks.register('javadocJar', Jar) {
dependsOn(tasks.named("dokkaHtml"))
dependsOn(tasks.named("dokkaJavadoc"))
archiveClassifier.set("javadoc")
Expand Down Expand Up @@ -166,6 +166,6 @@ subprojects { project ->
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}

0 comments on commit dc3a1d1

Please sign in to comment.