task annotationProcessing(type: JavaCompile, group: 'build') { // codegen
source = sourceSets.main.java
classpath = configurations.compile + configurations.compileOnly
destinationDir = project.file('src/main/generated')
options.compilerArgs = [
"-proc:only",
"-processor", "io.vertx.codegen.CodeGenProcessor",
"-Acodegen.output=${project.projectDir}/src/main"
]
}
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'io.vertx:vertx-core:' + project.getProperty("vertx.core.version")
compile 'io.vertx:vertx-web:' + project.getProperty("vertx.web.version")
compile 'io.vertx:vertx-dropwizard-metrics:' + project.getProperty("vertx.dropwizard.metrics.version")
compile 'io.vertx:vertx-service-proxy:' + project.getProperty("vertx.service.proxy.version")
compile 'io.vertx:vertx-codegen:' + project.getProperty("vertx.codegen.version")
compile 'io.prometheus:simpleclient_vertx:' + project.getProperty("prometheus.simpleclient.vertx.version")
compile 'io.prometheus:simpleclient_dropwizard:' + project.getProperty("prometheus.simpleclient.dropwizard.version")
compile 'io.prometheus:client:' + project.getProperty("prometheus.client.version")
compile "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20"
annotationProcessor "io.vertx:vertx-service-proxy:3.6.2:processor"
annotationProcessor "io.vertx:vertx-codegen:3.6.2:processor"
//External project dependency.
compile project(':MWStaticInterface')
compile project(':MWCommons')
compile project(':MWStaticEMR1')
compile project(':MWStaticATHN')
compile project(':MWStaticMultiEMR')
compile project(':MWStaticSansoro')
compile project(':MWCronEngine')
}--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/0bc9a878-c5aa-4175-87d6-d45443f0406a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package com.abc.verticle;
import com.google.auto.service.AutoService;
import io.vertx.codegen.CodeGenProcessor;
import javax.annotation.processing.Processor;
import javax.lang.model.SourceVersion;
@AutoService(Processor.class)
public class CustomCodeGenProcessor extends CodeGenProcessor {
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latestSupported();
}
}
task annotationProcessing(type: JavaCompile, group: 'build') { // codegen
source = sourceSets.main.java
classpath = configurations.compile
destinationDir = project.file('src/main/generated')
options.compilerArgs = [
"-proc:only",
"-processor","com.abc.CustomCodeGenProcessor",
"-AoutputDirectory=${project.projectDir}/src/main"
]
}
compileJava {
dependsOn annotationProcessing
source annotationProcessing.destinationDir
}
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cce34d02-076b-4f80-b4cf-23de9e823d1f%40googlegroups.com.
//build.gradle
task annotationProcessing(type: JavaCompile, group: 'build') { // codegen
source = sourceSets.main.java
classpath = configurations.compile + configurations.compileOnly
destinationDir = project.file('src/main/generated')
options.compilerArgs = [
"-proc:only",
"-processor", "io.vertx.codegen.CodeGenProcessor",
"-Acodegen.output=${project.projectDir}/src/main"
]
}
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'io.vertx:vertx-core:3.5.0'compile 'io.vertx:vertx-web:3.5.0'compile 'io.vertx:vertx-service-proxy:3.5.0'
compile 'io.vertx:vertx-codegen:3.5.0'annotationProcessor "io.vertx:vertx-service-proxy:3.5.0:processor"
annotationProcessor "io.vertx:vertx-codegen:3.5.0:processor"
//External project dependency.
compile project(':MWCommons')
}
task annotationProcessing(type: JavaCompile, group: 'build') { // codegen"-processor", "com.abc.CustomCodeGenProcessor",
source = sourceSets.main.java
classpath = configurations.compile
destinationDir = project.file('src/main/generated')
options.compilerArgs = [
"-proc:only",
"-AoutputDirectory=${project.projectDir}/src/main"
]
}
compileJava {
options.with {
encoding = 'utf-8'
compilerArgs << '-proc:none'
}
}META-INF/services/javax.annotation.processing.Processor. Hence, I created the same file and added processor path there.com.abc.CustomCodeGenProcessor
annotationProcessor("io.vertx:vertx-codegen:3.5.0:processor")
annotationProcessor("io.vertx:vertx-rx-java2:3.5.0")
annotationProcessor("io.vertx:vertx-rx-java2-gen:3.5.0")
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-bin.zip
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/FBAF0169-45EE-41E1-9F4F-39A616665C1A%40gmail.com.