CXF Codegen is a Gradle plugin port of the CXF Codegen Maven plugin.
The plugin is published to Maven Central and can be applied using the plugins DSL block:
Note
|
The plugin was previously published to the Gradle Plugin portal, but switched to publishing to Maven Central primarily to track download statistics which the Gradle Plugin portal does not provide. |
Kotlin
plugins {
java
id("io.mateo.cxf-codegen") version "2.4.0"
}
Groovy
plugins {
id "java"
id "io.mateo.cxf-codegen" version "2.4.0"
}
Note
|
The Gradle plugin proxies Maven Central, so you should not need to configure Maven Central as a plugin repository. |
Snapshots of the next development version are published to the Sonatype OSSRH snapshot repository.
Documentation for snapshots:
Snapshots are published for every commit to the master
branch.
Kotlin
// build.gradle.kts
plugins {
java
id("io.mateo.cxf-codegen") version "2.4.1-SNAPSHOT"
}
// settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
mavenContent {
snapshotsOnly()
}
}
}
}
Groovy
// build.gradle
plugins {
id "java"
id "io.mateo.cxf-codegen" version "2.4.1-SNAPSHOT"
}
// settings.gradle
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
mavenContent {
snapshotsOnly()
}
}
}
}
You will need Java 17 to build CXF Codegen.
Tip
|
A compatible Java installation 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