File tree 6 files changed +24
-14
lines changed
src/main/java/io/jbock/simple/processor/graph
6 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Java CI
1
+ name : Java CI with Gradle
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
4
8
5
9
jobs :
6
10
build :
7
11
8
12
runs-on : ubuntu-latest
9
13
10
14
steps :
11
- - uses : actions/checkout@v3
12
- - uses : actions/setup-java@v2
15
+ - uses : actions/checkout@v4
16
+ - name : Set up JDK
17
+ uses : actions/setup-java@v4
13
18
with :
14
19
distribution : ' temurin'
15
- java-version : 21
20
+ java-version : 22
21
+ cache : ' gradle'
22
+ - name : Build with Gradle
16
23
- run : ./gradlew simple-component:javadoc compiler:javadoc compiler:test
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(' java' )
3
3
id(' maven-publish' )
4
- id(' com.github.johnrengelman. shadow' ) version(' 8.1.1 ' )
4
+ id(' com.gradleup. shadow' ) version(' 8.3.3 ' )
5
5
id(' signing' )
6
6
}
7
7
@@ -51,7 +51,7 @@ dependencies {
51
51
shadow(simple_component)
52
52
annotationProcessor(' io.github.jbock-java:simple-component-compiler:1.024' )
53
53
testImplementation(' io.github.jbock-java:compile-testing:0.19.12' )
54
- testImplementation(' org.junit.jupiter:junit-jupiter:5.10 .1' )
54
+ testImplementation(' org.junit.jupiter:junit-jupiter:5.11 .1' )
55
55
testImplementation(simple_component)
56
56
testImplementation(' jakarta.inject:jakarta.inject-api:2.0.1' )
57
57
testImplementation(' javax.inject:javax.inject:1' )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ final class CyclePrinter {
23
23
}
24
24
25
25
ValidationFailure fail () {
26
- Report report = cycleMessage ();
26
+ Report report = createReport ();
27
27
return new ValidationFailure (report .message , report .binding .element ());
28
28
}
29
29
@@ -37,17 +37,17 @@ private static final class Report {
37
37
}
38
38
}
39
39
40
- Report cycleMessage () {
40
+ private Report createReport () {
41
41
for (Binding binding : graph .nodes ()) {
42
42
Optional <List <Edge >> cycle = findProperCycle (binding );
43
43
if (cycle .isPresent ()) {
44
- return new Report (cycleMessage (cycle .orElseThrow ()), binding );
44
+ return new Report (createReport (cycle .orElseThrow ()), binding );
45
45
}
46
46
}
47
47
throw new AssertionError ("input didn't contain a cycle" );
48
48
}
49
49
50
- private String cycleMessage (List <Edge > cycle ) {
50
+ private String createReport (List <Edge > cycle ) {
51
51
List <String > message = new ArrayList <>();
52
52
message .add ("Found a dependency cycle:" );
53
53
for (Edge edge : cycle ) {
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 15
15
# See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
17
#
18
+ # SPDX-License-Identifier: Apache-2.0
19
+ #
18
20
19
21
# #############################################################################
20
22
#
55
57
# Darwin, MinGW, and NonStop.
56
58
#
57
59
# (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/ plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/ plugins-application /src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
61
# within the Gradle project.
60
62
#
61
63
# You can find Gradle at https://github.com/gradle/gradle/.
84
86
# shellcheck disable=SC2034
85
87
APP_BASE_NAME=${0##*/ }
86
88
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
89
+ APP_HOME=$( cd -P " ${APP_HOME:- ./ } " > /dev/null && printf ' %s
90
+ ' " $PWD " ) || exit
88
91
89
92
# Use the maximum available, or set MAX_FD != -1 to use that value.
90
93
MAX_FD=maximum
You can’t perform that action at this time.
0 commit comments