Skip to content

Commit

Permalink
use all instead of bin for the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows committed Jan 26, 2024
1 parent 3969d7d commit 96fbdec
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ jobs:

- name: Setup Gradle
uses: gradle/gradle-build-action@v2.12.0
- run: ./gradlew --version

- name: Run Build
run: ./gradlew ktlintCheck build -s
- name: Run Ktlint Check On All Sources
run: ./gradlew ktlintCheck -s

- name: Run Build and Unit Tests
run: ./gradlew build -s

- name: Publish Test Report
uses: EnricoMi/publish-unit-test-result-action@v2.12.0
Expand Down
26 changes: 15 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ plugins {
id 'groovy'
}

configurations.configureEach {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion libs.versions.kotlin.get()
allprojects {
configurations.configureEach {
resolutionStrategy {
preferProjectModules()

enableDependencyVerification()

eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion libs.versions.kotlin.get()
}
}
}
}
}

subprojects {
repositories {
gradlePluginPortal()
google()
mavenCentral()
tasks.withType(Wrapper).configureEach {
distributionType = Wrapper.DistributionType.ALL
}
}

subprojects {
tasks.withType(Jar).configureEach {
def dateFile = new File(buildDir, 'jar-manifest-date.txt')
if (!dateFile.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 4 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
google()
gradlePluginPortal()
}
}

Expand All @@ -14,9 +14,9 @@ dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

repositories {
gradlePluginPortal()
google()
mavenCentral()
google()
gradlePluginPortal()
}
}

Expand Down

0 comments on commit 96fbdec

Please sign in to comment.