Skip to content

Commit 10555c4

Browse files
authored
Merge pull request #183 from domaframework/dependencies/update-all
Require Java 17
2 parents b23caac + e916162 commit 10555c4

File tree

17 files changed

+30
-326
lines changed

17 files changed

+30
-326
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up JDK 8
16+
- name: Set up JDK 21
1717
uses: actions/setup-java@v4
1818
with:
1919
distribution: 'zulu'
20-
java-version: 8
20+
java-version: 21
2121

2222
- name: Grant execute permission for ./gradlew
2323
run: chmod +x gradlew

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
/.metadata
99
/.idea/
1010
.factorypath
11-
.sdkmanrc

.sdkmanrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Enable auto-env through the sdkman_auto_env config
2+
# Add key=value pairs of SDKs to use below
3+
java=21-zulu

codegen-test/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import org.seasar.doma.gradle.codegen.desc.LanguageType
33
import org.seasar.doma.gradle.codegen.jdbc.SimpleDataSource
44

55
buildscript {
6-
ext.domaVersion = '2.62.1'
7-
ext.h2Version= '1.4.200'
6+
ext.domaVersion = '3.0.0'
7+
ext.h2Version= '2.3.232'
88
repositories {
99
mavenCentral()
1010
mavenLocal()
@@ -19,15 +19,14 @@ buildscript {
1919

2020
plugins {
2121
id 'java'
22-
id 'org.jetbrains.kotlin.jvm' version '1.9.25'
22+
id 'org.jetbrains.kotlin.jvm' version '2.0.20'
2323
id 'org.seasar.doma.compile' version '1.1.0'
2424
}
2525

2626
apply plugin: 'org.domaframework.doma.codegen'
2727

2828
java {
29-
sourceCompatibility = JavaVersion.VERSION_1_8
30-
targetCompatibility = JavaVersion.VERSION_1_8
29+
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
3130
}
3231

3332
test {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

codegen/build.gradle.kts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,26 @@ plugins {
66
}
77

88
gradlePlugin {
9+
website.set("https://github.com/domaframework/doma-codegen-plugin")
10+
vcsUrl.set("https://github.com/domaframework/doma-codegen-plugin.git")
911
plugins {
1012
create("codegenPlugin") {
1113
id = "org.domaframework.doma.codegen"
1214
displayName = "Doma Codegen Plugin"
1315
description = "Generates Java, Kotlin, and SQL files from Database"
1416
implementationClass = "org.seasar.doma.gradle.codegen.CodeGenPlugin"
17+
tags.set(listOf("doma", "generator"))
1518
}
1619
}
1720
}
1821

19-
pluginBundle {
20-
website = "https://github.com/domaframework/doma-codegen-plugin"
21-
vcsUrl = "https://github.com/domaframework/doma-codegen-plugin.git"
22-
tags = listOf("doma", "generator")
23-
}
24-
2522
sourceSets {
2623
main {
2724
java {
28-
setSrcDirs(emptyList<String>())
25+
setSrcDirs(emptyList<String>())
2926
}
30-
withConvention(GroovySourceSet::class) {
31-
groovy {
32-
setSrcDirs(listOf("src/main/groovy", "src/main/java"))
33-
}
27+
groovy {
28+
setSrcDirs(listOf("src/main/groovy", "src/main/java"))
3429
}
3530
}
3631
}
@@ -44,10 +39,10 @@ spotless {
4439
}
4540

4641
java {
47-
sourceCompatibility = JavaVersion.VERSION_1_8
48-
targetCompatibility = JavaVersion.VERSION_1_8
42+
toolchain.languageVersion.set(JavaLanguageVersion.of( 17))
4943
}
5044

45+
5146
repositories {
5247
mavenCentral()
5348
mavenLocal()
@@ -66,6 +61,10 @@ tasks {
6661
test {
6762
useJUnitPlatform()
6863
}
64+
65+
javadoc {
66+
enabled = false
67+
}
6968

7069
groovydoc {
7170
enabled = false
-57.5 KB
Binary file not shown.

codegen/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

codegen/gradlew

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)