This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Kotlin test * Use submodule's path * Upgrade to upload-artifact v2 * Continue on error * Port test code from Java to Kotlin * Upload reports if test fails * Upload reports if test fails * Add matrix for modules * Split a workflow job to two * Wait the job * Clean the workflow
- Loading branch information
1 parent
bfe885b
commit b095941
Showing
265 changed files
with
4,544 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,69 @@ | ||
plugins { | ||
id("java") | ||
id("com.diffplug.eclipse.apt") version "3.24.0" | ||
id("com.diffplug.spotless") version "5.5.1" | ||
id("org.seasar.doma.compile") version "1.1.0" | ||
base | ||
id("com.diffplug.eclipse.apt") version "3.24.0" apply false | ||
id("com.diffplug.spotless") version "5.5.0" apply false | ||
id("org.seasar.doma.compile") version "1.1.0" apply false | ||
kotlin("jvm") version "1.4.10" apply false | ||
kotlin("kapt") version "1.4.10" apply false | ||
} | ||
|
||
val domaVersion = project.findProperty("domaVersion") ?: "2.+" | ||
subprojects { | ||
apply(plugin = "java") | ||
apply(plugin = "com.diffplug.eclipse.apt") | ||
apply(plugin = "com.diffplug.spotless") | ||
apply(plugin ="org.seasar.doma.compile") | ||
|
||
spotless { | ||
java { | ||
googleJavaFormat("1.7") | ||
} | ||
} | ||
|
||
tasks { | ||
val encoding = "UTF-8" | ||
|
||
compileJava { | ||
options.encoding = encoding | ||
options.compilerArgs = listOf("-Adoma.domain.converters=org.seasar.doma.it.domain.DomainConverterProvider") | ||
} | ||
|
||
compileTestJava { | ||
options.encoding = encoding | ||
options.compilerArgs.addAll(listOf("-proc:none")) | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes(mapOf("Implementation-Title" to project.name, "Implementation-Version" to archiveVersion)) | ||
tasks { | ||
named<Test>("test") { | ||
val jdbcUrl: Any by project | ||
val jdbcUser: Any by project | ||
val jdbcPassword: Any by project | ||
systemProperty("url", jdbcUrl) | ||
systemProperty("user", jdbcUser) | ||
systemProperty("password", jdbcPassword) | ||
maxHeapSize = "1g" | ||
useJUnitPlatform() | ||
} | ||
|
||
named("build") { | ||
dependsOn("spotlessApply") | ||
} | ||
} | ||
|
||
test { | ||
val jdbcUrl: Any by project | ||
val jdbcUser: Any by project | ||
val jdbcPassword: Any by project | ||
systemProperty("url", jdbcUrl) | ||
systemProperty("user", jdbcUser) | ||
systemProperty("password", jdbcPassword) | ||
useJUnitPlatform() | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
annotationProcessor("org.seasar.doma:doma-processor:${domaVersion}") | ||
implementation("org.seasar.doma:doma-core:${domaVersion}") | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2") | ||
testRuntimeOnly("com.h2database:h2:1.4.200") | ||
testRuntimeOnly("mysql:mysql-connector-java:8.0.21") | ||
testRuntimeOnly("org.postgresql:postgresql:42.2.16") | ||
testRuntimeOnly("com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8") | ||
} | ||
|
||
eclipse { | ||
classpath { | ||
file { | ||
whenMerged { | ||
val classpath = this as org.gradle.plugins.ide.eclipse.model.Classpath | ||
classpath.entries.removeAll { | ||
when (it) { | ||
is org.gradle.plugins.ide.eclipse.model.Output -> it.path == ".apt_generated" | ||
else -> false | ||
dependencies { | ||
"testImplementation"("org.junit.jupiter:junit-jupiter-api:5.6.2") | ||
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:5.6.2") | ||
"testRuntimeOnly"("com.h2database:h2:1.4.200") | ||
"testRuntimeOnly"("mysql:mysql-connector-java:8.0.21") | ||
"testRuntimeOnly"("org.postgresql:postgresql:42.2.16") | ||
"testRuntimeOnly"("com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8") | ||
} | ||
|
||
configure<org.gradle.plugins.ide.eclipse.model.EclipseModel> { | ||
classpath { | ||
file { | ||
whenMerged { | ||
val classpath = this as org.gradle.plugins.ide.eclipse.model.Classpath | ||
classpath.entries.removeAll { | ||
when (it) { | ||
is org.gradle.plugins.ide.eclipse.model.Output -> it.path == ".apt_generated" | ||
else -> false | ||
} | ||
} | ||
} | ||
} | ||
withXml { | ||
val node = asNode() | ||
node.appendNode("classpathentry", mapOf("kind" to "src", "output" to "bin/main", "path" to ".apt_generated")) | ||
withXml { | ||
val node = asNode() | ||
node.appendNode("classpathentry", mapOf("kind" to "src", "output" to "bin/main", "path" to ".apt_generated")) | ||
} | ||
} | ||
} | ||
jdt { | ||
javaRuntimeName = "JavaSE-1.8" | ||
} | ||
} | ||
jdt { | ||
javaRuntimeName = "JavaSE-1.8" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/bin | ||
/target | ||
/build/ | ||
/.apt_generated/ | ||
/.gradle/ | ||
/.settings/ | ||
/.project | ||
/.factorypath | ||
/.classpath | ||
.idea | ||
out | ||
.sdkmanrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
java | ||
} | ||
|
||
val domaVersion = project.findProperty("domaVersion") ?: "2.+" | ||
|
||
tasks { | ||
val encoding = "UTF-8" | ||
|
||
compileJava { | ||
options.encoding = encoding | ||
options.compilerArgs = listOf("-Adoma.domain.converters=org.seasar.doma.it.domain.DomainConverterProvider") | ||
} | ||
|
||
compileTestJava { | ||
options.encoding = encoding | ||
options.compilerArgs.addAll(listOf("-proc:none")) | ||
} | ||
} | ||
|
||
spotless { | ||
java { | ||
googleJavaFormat("1.7") | ||
} | ||
} | ||
|
||
dependencies { | ||
annotationProcessor("org.seasar.doma:doma-processor:${domaVersion}") | ||
implementation("org.seasar.doma:doma-core:${domaVersion}") | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/bin | ||
/target | ||
/build/ | ||
/.apt_generated/ | ||
/.gradle/ | ||
/.settings/ | ||
/.project | ||
/.factorypath | ||
/.classpath | ||
.idea | ||
out | ||
.sdkmanrc |
Oops, something went wrong.