CXF Codegen is a Gradle plugin port of the CXF Codegen Maven plugin.
The plugin is published to Gradle’s plugin portal and can be applied using the plugins DSL block:
Groovy
plugins {
id "io.mateo.cxf-codegen" version "1.0.0-rc.3"
}
Kotlin
plugins {
id("io.mateo.cxf-codegen") version "1.0.0-rc.3"
}
Snapshots of the next development version are published to the Sonatype OSSRH snapshot repository.
Snapshots are published for every commit to the master
branch. Documentation for snapshots can be found here.
Groovy
// build.gradle
plugins {
id "io.mateo.cxf-codegen" version "1.0.0-SNAPSHOT"
}
// settings.gradle
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
mavenContent {
snapshotsOnly()
}
}
}
}
Kotlin
// build.gradle.kts
plugins {
id("io.mateo.cxf-codegen") version "1.0.0-SNAPSHOT"
}
// settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
mavenContent {
snapshotsOnly()
}
}
}
}
You will need JDK 11 to build CXF Codegen.
Tip
|
A compatible JDK will automatically be downloaded by Gradle if you do not have one. See Toolchains for JVM projects for more details. |
The plugin can be built and published to your local Maven cache using the Gradle Wrapper.
./gradlew :cxf-codegen-gradle:publishToMavenLocal
This will build and publish it to your local Maven cache. It won’t run any of
the tests. If you want to build everything, use the build
task:
./gradlew build