Skip to content

Commit 0d9902e

Browse files
committed
Polish build.gradle
1 parent 7801db0 commit 0d9902e

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

build.gradle

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
plugins {
22
id 'com.diffplug.gradle.spotless' version '3.27.2'
3+
id 'com.diffplug.eclipse.apt' version '3.22.0'
34
id 'java-library'
4-
id 'signing'
55
id 'maven-publish'
6+
id 'net.researchgate.release' version '2.6.0'
7+
id 'signing'
68
}
79

8-
group = 'org.seasar.doma'
9-
version = '2.28.1-SNAPSHOT'
10-
sourceCompatibility = jdkVersion
11-
targetCompatibility = jdkVersion
12-
1310
ext {
1411
isReleaseVersion = !version.endsWith("SNAPSHOT")
1512
encoding = 'UTF-8'
@@ -22,6 +19,8 @@ spotless {
2219
}
2320

2421
java {
22+
sourceCompatibility = JavaVersion.VERSION_1_8
23+
targetCompatibility = JavaVersion.VERSION_1_8
2524
withJavadocJar()
2625
withSourcesJar()
2726
}
@@ -134,4 +133,20 @@ signing {
134133

135134
build.dependsOn publishToMavenLocal
136135

137-
apply from:'eclipse.gradle'
136+
eclipse {
137+
classpath {
138+
file {
139+
whenMerged { classpath ->
140+
classpath.entries.removeAll { it.path == '.apt_generated' }
141+
}
142+
withXml { provider ->
143+
def node = provider.asNode()
144+
node.appendNode( 'classpathentry', [ kind: 'src', output: 'bin/main', path: '.apt_generated'])
145+
}
146+
}
147+
}
148+
jdt {
149+
javaRuntimeName = 'JavaSE-1.8'
150+
}
151+
}
152+

eclipse.gradle

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

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
jdkVersion=1.8
1+
group=org.seasar.doma
2+
version=2.28.1-SNAPSHOT
23
projectUrl=https://github.com/domaframework/doma
34
githubUrl[email protected]:domaframework/doma.git
45
sonatypeUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2/

0 commit comments

Comments
 (0)