Skip to content
Scott Kurz edited this page Mar 11, 2023 · 1 revision

Welcome to the ci.gradle wiki for Liberty Gradle Plugin (LGP) !

Testing Locally - built changes

Building

  1. As a shortcut, skip test with: ./gradlew install -x test

Consuming

Since you won't typically be publishing your locally-built changes, not sure how to consume via the plugins{} DSL. Instead you can consume simply with this in build.gradle

buildscript {
  repositories {
        mavenCentral()
        mavenLocal()
  }
  dependencies {
    classpath("io.openliberty.tools:liberty-gradle-plugin:3.5.3-SNAPSHOT")
  }
}

apply plugin: 'liberty'

Gotchas:

It seems there are times when you need to run with a similar version of Gradle as was used to build the local LGP changes.

E.g at the time of this writing, the ci.gradle project is built with a wrapper at Gradle v7.4.2.

For a problem like:

A problem occurred evaluating root project 'GradleSample'.
   groovy/lang/GroovyObject.getProperty(Ljava/lang/String;)Ljava/lang/Object;

the problem can be resolved by using Gradle v7.4.2 on the consuming project, e.g. ./gradlew wrapper --gradle-version 7.4.2

?? Not sure how this is not a bigger issue using LGP from older Gradle versions ??

Clone this wiki locally