-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Grégoire Neuville
committed
Sep 27, 2019
1 parent
6671816
commit fa1c9cf
Showing
9 changed files
with
157 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module derive4j.annotation { | ||
exports org.derive4j; | ||
} |
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 |
---|---|---|
|
@@ -16,14 +16,15 @@ buildscript { | |
} | ||
|
||
dependencies { | ||
classpath "com.github.ben-manes:gradle-versions-plugin:0.21.0" | ||
classpath "com.github.ben-manes:gradle-versions-plugin:0.25.0" | ||
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.15.0" | ||
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.7" | ||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.23.1" | ||
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.9" | ||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.2" | ||
classpath "org.javamodularity:moduleplugin:1.6.0" | ||
} | ||
|
||
wrapper { | ||
gradleVersion = "5.5" | ||
gradleVersion = "5.6.2" | ||
distributionType = Wrapper.DistributionType.ALL | ||
} | ||
} | ||
|
@@ -34,7 +35,6 @@ allprojects { | |
apply plugin: 'jacoco' | ||
apply plugin: 'idea' | ||
|
||
|
||
defaultTasks "build" | ||
|
||
ext { | ||
|
@@ -56,9 +56,9 @@ allprojects { | |
primaryEmail = "[email protected]" | ||
|
||
dependencyJavaPoet = "com.squareup:javapoet:1.11.1" | ||
dependencyPreviousDerive4J = "org.derive4j:derive4j:1.1.0" | ||
dependencyPreviousDerive4J = "org.derive4j:derive4j:1.1.1" | ||
dependencyJunit = "junit:junit:4.12" | ||
dependencyAutoService = "com.google.auto.service:auto-service:1.0-rc4" | ||
dependencyAutoService = "com.google.auto.service:auto-service:1.0-rc6" | ||
|
||
gplLicenseName = "The GNU General Public License" | ||
lgplLicenseName = "The GNU Lesser General Public License" | ||
|
@@ -84,6 +84,7 @@ subprojects { | |
|
||
apply from: "$rootDir/lib.gradle" | ||
apply plugin: "java" | ||
apply plugin: 'org.javamodularity.moduleplugin' | ||
apply plugin: "com.github.ben-manes.versions" | ||
apply plugin: "com.github.hierynomus.license" | ||
apply plugin: "com.diffplug.gradle.spotless" | ||
|
@@ -97,7 +98,6 @@ subprojects { | |
endWithNewline() | ||
} | ||
} | ||
|
||
|
||
repositories { | ||
mavenLocal() | ||
|
@@ -126,9 +126,23 @@ configure(subprojects) { | |
|
||
apply plugin: "maven" | ||
|
||
sourceCompatibility = "1.8" | ||
sourceCompatibility = "1.9" | ||
|
||
sourceSets { | ||
generated { | ||
java.srcDir "$buildDir/generated/sources/annotationProcessor/java/main" | ||
} | ||
} | ||
|
||
task customJavadoc(type: Javadoc) { | ||
source = sourceSets.main.java + sourceSets.generated.java | ||
classpath = sourceSets.main.compileClasspath | ||
doFirst { | ||
options.addStringOption('-module-path', classpath.asPath) | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: "javadoc") { | ||
task javadocJar(type: Jar, dependsOn: "customJavadoc") { | ||
archiveClassifier = 'javadoc' | ||
from "build/docs/javadoc" | ||
} | ||
|
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,4 @@ | ||
module derive4j.examples { | ||
requires derive4j.annotation; | ||
requires functionaljava; | ||
} |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-5.5-all.zip | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-5.6.2-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module derive4j.processor.api { | ||
requires transitive derive4j.annotation; | ||
requires transitive java.compiler; | ||
requires transitive com.squareup.javapoet; | ||
|
||
exports org.derive4j.processor.api; | ||
exports org.derive4j.processor.api.model; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module derive4j.processor { | ||
requires static auto.service.annotations; | ||
requires com.squareup.javapoet; | ||
requires java.compiler; | ||
requires derive4j.processor.api; | ||
requires derive4j.annotation; | ||
|
||
provides javax.annotation.processing.Processor | ||
with org.derive4j.processor.DerivingProcessor; | ||
|
||
uses org.derive4j.processor.api.ExtensionFactory; | ||
uses org.derive4j.processor.api.DerivatorFactory; | ||
} |
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