Before sending your pull requests, make sure you followed this list:
- Read Contributing Guidelines.
- Read Code of Conduct.
- Refer to Development process.
- Kobby Gradle and Maven plugins have identical public settings. If you change it, do it synchronously in both plugins.
- Build the project locally.
- Run Unit Tests and ensure that you have the test coverage for your code.
Please follow the steps below in order to make the changes:
-
Fork the repository
-
Set the local java version to 11
-
Open repository in your favourite IDE.
-
Make code changes to the Kobby Plugin.
-
Build and install the Kobby Plugin locally.
# This will build and install both the Gradle and the Maven plugin # to your local maven repository without test execution. ./gradlew clean build publishToMavenLocal -x test --stacktrace
-
The easiest way to test and debug your changes is to use the Kobby Example Projects.
First find
SNAPHOT
plugin version in the gradle.properties file. It looks like:version = 1.1.1-SNAPSHOT
-
Kobby Gradle Example
Clone Kobby Gradle Example project and change build.gradle.kts file in
cinema-api
module.// Change from: plugins { kotlin("jvm") `java-library` id("io.github.ermadmi78.kobby") version "1.1.0" }
// To: plugins { kotlin("jvm") `java-library` } buildscript { dependencies { classpath("io.github.ermadmi78:kobby-gradle-plugin:1.1.1-SNAPSHOT") } } apply(plugin = "io.github.ermadmi78.kobby")
Build the example:
./gradlew clean build
-
Kobby Maven Example
Clone Kobby Maven Example project and change pom.xml file.
<!-- Change from: --> <properties> <!-- ... skipped --> <kobby.version>1.1.0</kobby.version> <!-- ... skipped --> </properties>
<!-- To: --> <properties> <!-- ... skipped --> <kobby.version>1.1.1-SNAPSHOT</kobby.version> <!-- ... skipped --> </properties>
Build the example:
./mvnw clean package
-
-
Make sure that Kobby Example Projects are compiling and running.
-
Actualize old testcases
-
Run this command to actualize old testcases:
./gradlew clean build -Dkobby.testcases.actualize=true
-
Look at the local changes in Git to make sure the generated code is correct for the old testcases.
-
Commit actualized testcases.
-
Rebuild the project to make sure the testcases are correct.
./gradlew clean build --stacktrace
-
-
Please don't forget to write new testcases for new features!!!