File tree Expand file tree Collapse file tree 10 files changed +36
-34
lines changed Expand file tree Collapse file tree 10 files changed +36
-34
lines changed Original file line number Diff line number Diff line change 11plugins {
2- base
2+ java
3+ alias(libs.plugins.spotless)
34}
45
6+ val catalog = libs
7+
8+ allprojects {
9+ apply (plugin = catalog.plugins.spotless.get().pluginId)
10+
11+ spotless {
12+ java {
13+ googleJavaFormat(libs.versions.google.java.format.get())
14+ }
15+ }
16+
17+ repositories {
18+ mavenCentral()
19+ }
20+ }
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ tasks {
1414 }
1515}
1616
17- repositories {
18- mavenCentral()
19- }
20-
2117dependencies {
2218 annotationProcessor(libs.doma.processor)
2319 implementation(libs.doma.core)
Original file line number Diff line number Diff line change 55
66@ Entity
77public class Employee {
8- @ Id
9- public Integer id ;
10- public String name ;
8+ @ Id public Integer id ;
9+ public String name ;
1110}
Original file line number Diff line number Diff line change 66
77@ Dao
88public interface EmployeeDao {
9- @ Select
10- Employee selectById (Integer id );
9+ @ Select
10+ Employee selectById (Integer id );
1111
12- @ Script
13- void create ();
12+ @ Script
13+ void create ();
1414}
Original file line number Diff line number Diff line change 11package example ;
22
3- import org .junit .jupiter .api .Test ;
4-
53import static org .junit .jupiter .api .Assertions .assertNotNull ;
64
5+ import org .junit .jupiter .api .Test ;
6+
77public class GenerationTest {
88
99 @ Test
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ java {
1414 toolchain.languageVersion.set(JavaLanguageVersion .of(libs.versions.java.get().toInt()))
1515}
1616
17- repositories {
18- mavenCentral()
19- }
20-
2117tasks {
2218 test {
2319 useJUnitPlatform()
Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ tasks {
2020 }
2121}
2222
23- repositories {
24- mavenCentral()
25- }
26-
2723dependencies {
2824 kapt(libs.doma.processor)
2925 implementation(libs.doma.core)
Original file line number Diff line number Diff line change 55
66@ Entity
77class Address {
8- @ Id
9- public Integer id ;
10- public String name ;
11- }
8+ @ Id public Integer id ;
9+ public String name ;
10+ }
Original file line number Diff line number Diff line change 11package example ;
22
33import org .seasar .doma .Dao ;
4- import org .seasar .doma .Select ;
54import org .seasar .doma .Script ;
5+ import org .seasar .doma .Select ;
66
77@ Dao
88interface AddressDao {
9- @ Select
10- Address selectById (Integer id );
9+ @ Select
10+ Address selectById (Integer id );
1111
12- @ Script
13- void create ();
14- }
12+ @ Script
13+ void create ();
14+ }
Original file line number Diff line number Diff line change 11package example ;
22
3- import org .junit .jupiter .api .Test ;
4-
53import static org .junit .jupiter .api .Assertions .assertNotNull ;
64
5+ import org .junit .jupiter .api .Test ;
6+
77public class GenerationTest {
88
99 @ Test
You can’t perform that action at this time.
0 commit comments