File tree Expand file tree Collapse file tree 7 files changed +49
-5
lines changed
buildSrc/src/main/kotlin/dagger/gradle/build
gradle-projects/dagger-runtime Expand file tree Collapse file tree 7 files changed +49
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Gradle Build'
2
+ description : ' Builds artifacts using Gradle.'
3
+
4
+ runs :
5
+ using : " composite"
6
+ steps :
7
+ - name : ' Install Java ${{ env.USE_JAVA_VERSION_FOR_GRADLE }}'
8
+ uses : actions/setup-java@v4
9
+ with :
10
+ distribution : ' ${{ env.USE_JAVA_DISTRIBUTION }}'
11
+ java-version : ' ${{ env.USE_JAVA_VERSION_FOR_GRADLE }}'
12
+ - name : ' Check out repository'
13
+ uses : actions/checkout@v4
14
+ - name : ' Cache Gradle files'
15
+ uses : actions/cache@v4
16
+ with :
17
+ path : |
18
+ ~/.gradle/caches
19
+ ~/.gradle/wrapper
20
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-gradle-
23
+ - name : ' Build Gradle version'
24
+ run : ./util/build-gradle.sh
25
+ shell : bash
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ description: 'Tests the Hilt Gradle plugin.'
4
4
runs :
5
5
using : " composite"
6
6
steps :
7
- - name : ' Install Java ${{ env.USE_JAVA_VERSION_FOR_PLUGIN }}'
7
+ - name : ' Install Java ${{ env.USE_JAVA_VERSION_FOR_GRADLE_PLUGIN }}'
8
8
uses : actions/setup-java@v4
9
9
with :
10
10
distribution : ' ${{ env.USE_JAVA_DISTRIBUTION }}'
11
- java-version : ' ${{ env.USE_JAVA_VERSION_FOR_PLUGIN }}'
11
+ java-version : ' ${{ env.USE_JAVA_VERSION_FOR_GRADLE_PLUGIN }}'
12
12
- name : ' Check out repository'
13
13
uses : actions/checkout@v4
14
14
- name : ' Cache local Maven repository'
Original file line number Diff line number Diff line change 12
12
USE_JAVA_DISTRIBUTION : ' zulu'
13
13
USE_JAVA_VERSION : ' 11'
14
14
# This is required by Gradle 8.0+.
15
- USE_JAVA_VERSION_FOR_PLUGIN : ' 17'
15
+ USE_JAVA_VERSION_FOR_GRADLE_PLUGIN : ' 17'
16
+ # Required by JDK Toolchain Configuration
17
+ USE_JAVA_VERSION_FOR_GRADLE : ' 18'
16
18
# The default Maven 3.9.0 has a regression so we manually install 3.8.7.
17
19
# https://issues.apache.org/jira/browse/MNG-7679
18
20
USE_MAVEN_VERSION : ' 3.8.7'
40
42
steps :
41
43
- uses : actions/checkout@v4
42
44
- uses : ./.github/actions/bazel-test
45
+ gradle-build :
46
+ name : ' Gradle build'
47
+ runs-on :
48
+ group : large-runner-group
49
+ labels : ubuntu-22.04-16core
50
+ steps :
51
+ - uses : actions/checkout@v4
52
+ - uses : ./.github/actions/gradle-build
43
53
artifact-verification-tests :
44
54
name : ' Artifact verification tests'
45
55
needs : bazel-build
Original file line number Diff line number Diff line change 11
11
USE_JAVA_DISTRIBUTION : ' zulu'
12
12
USE_JAVA_VERSION : ' 11'
13
13
# This is required by Gradle 8.0+.
14
- USE_JAVA_VERSION_FOR_PLUGIN : ' 17'
14
+ USE_JAVA_VERSION_FOR_GRADLE_PLUGIN : ' 17'
15
+ # Required by JDK Toolchain Configuration
16
+ USE_JAVA_VERSION_FOR_GRADLE : ' 18'
15
17
DAGGER_RELEASE_VERSION : " ${{ github.event.inputs.dagger_release_version }}"
16
18
# The default Maven 3.9.0 has a regression so we manually install 3.8.7.
17
19
# https://issues.apache.org/jira/browse/MNG-7679
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ fun Project.daggerSources(block: DaggerSourceSet.() -> Unit) {
72
72
val javaExtension = extensions.findByType(JavaPluginExtension ::class .java)
73
73
? : error(" The daggerSources() configuration must be applied to a Kotlin (JVM) project." )
74
74
val daggerSources = DaggerSourceSet (this , kotlinExtension.sourceSets, javaExtension.sourceSets)
75
- black .invoke(daggerSources)
75
+ block .invoke(daggerSources)
76
76
}
77
77
78
78
/* *
Original file line number Diff line number Diff line change 1
1
import dagger.gradle.build.daggerSources
2
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2
4
3
5
plugins {
4
6
id(libs.plugins.kotlinJvm.get().pluginId)
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ ./gradlew build --no-daemon --stacktrace
You can’t perform that action at this time.
0 commit comments