forked from jbangdev/jbang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Created AnnotationProcessor for PicoCli
This processor reads the PicoCli model created in the traditional way using the annotations and introspection and generates code that uses the PicoCli API to recreate the same model.
- Loading branch information
Showing
7 changed files
with
654 additions
and
9 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
target | ||
.idea | ||
*.iml | ||
/build | ||
build | ||
.gradle | ||
.factorypath | ||
bin | ||
|
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,28 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group 'dev.jbang' | ||
version '0.71.1.1' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'info.picocli:picocli-codegen:4.6.1' | ||
implementation 'com.squareup:javapoet:1.13.0' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0' | ||
} | ||
|
||
tasks.withType( JavaCompile ).configureEach { | ||
options.compilerArgs.addAll( [ | ||
'--add-exports', 'jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED', | ||
'--add-exports', 'jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' | ||
] ) | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
annotation/src/main/resources/META-INF/services/javax.annotation.processing.Processor
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 @@ | ||
MyProcessor |
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ gradleEnterprise { | |
//publishAlways() | ||
} | ||
} | ||
include 'annotation' |
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