Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,27 @@ jobs:
build-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
cache: gradle
cache-dependency-path: |
**/gradle-wrapper.properties
**/build.gradle
**/build.gradle.kts
**/settings.gradle
**/settings.gradle.kts
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
uses: gradle/wrapper-validation-action@v1
- name: Ensure gradlew is executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew clean build
run: ./gradlew --no-daemon clean build
- name: Cleanup Gradle Cache
if: always()
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
rm -f ~/.gradle/caches/modules-2/modules-2.lock || true
rm -f ~/.gradle/caches/modules-2/gc.properties || true
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import kotlin.reflect.KProperty

buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven(url = "https://repo.gradle.org/artifactory/jcenter-backup/")
}
dependencies {
classpath(kotlin("gradle-plugin", version = Vers.kotlin))
Expand Down Expand Up @@ -83,6 +85,8 @@ subprojects {
if (!repositoryUrl.isNullOrEmpty()) {
maven(url = repositoryUrl.toString())
}
jcenter()
maven(url = "https://repo.gradle.org/artifactory/jcenter-backup/")
}

jacoco {
Expand Down
5 changes: 4 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ plugins {
}

repositories {
jcenter()
mavenCentral()
}
mavenLocal()
maven(url = "https://repo.gradle.org/artifactory/jcenter-backup/")
}