diff --git a/README.md b/README.md index b20bd4b..7def683 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ var semverProcessor = "net.thauvin.erik:semver:1.2.0" dependencies { kapt(semverProcessor) - compileOnly(semverProcessor) + implementation (semverProcessor) } kapt { diff --git a/docs/README.html b/docs/README.html index 0fa5011..aaea2f5 100644 --- a/docs/README.html +++ b/docs/README.html @@ -93,18 +93,18 @@

Table of Contents

  • Default Template
  • Custom Template
  • -
  • Elements & Properties
  • -
  • Usage with Maven, Gradle, Kotlin and Kobalt +
  • Elements & Properties
  • +
  • Usage with Maven, Gradle, Kotlin and Kobalt
  • @@ -436,13 +436,13 @@

    Maven

    <version>1.2.0</version> </dependency>

    Please look at pom.xml in the Java example directory for a sample:

    -
    mvn compile exec:java
    +
    mvn verify

    Gradle

    Class Generation

    To install and run from Gradle, add the following to build.gradle:

    dependencies {
         annotationProcessor 'net.thauvin.erik:semver:1.2.0'
    -    compileOnly 'net.thauvin.erik:semver:1.2.0'
    +    implementation 'net.thauvin.erik:semver:1.2.0'
     }
     

    The GeneratedVersion class will be automatically created in the build/generated directory upon compiling.

    @@ -467,11 +467,17 @@

    Kotlin & Gradle

    dependencies { kapt(semverProcessor) - compileOnly(semverProcessor) -} -

    As of Kotlin 1.2.30, when using kapt you must include the following in gradle.properties:

    + implementation (semverProcessor) +} + +kapt { + arguments { + arg("semver.project.dir", projectDir) + } +} +

    The arguments block is not required if kapt is configured to use the Gradle Worker API in gradle.properties:

    kapt.use.worker.api=true
    -

    This option will likely be enabled by default in the future, but is currently not working under Java 10/11 see KT-26203.

    +

    This option will likely be enabled by default in the future, but is currently not working under Java 10+ see KT-26203.

    Please look at the Kotlin example project for a build.gradle.kts sample.

    Kobalt

    To install and run from Kobalt, add the following to Build.kt: