Skip to content

Simplify app development #204#205

Merged
rymsha merged 5 commits intomasterfrom
204-simplify-app-development
Apr 1, 2026
Merged

Simplify app development #204#205
rymsha merged 5 commits intomasterfrom
204-simplify-app-development

Conversation

@rymsha
Copy link
Copy Markdown
Contributor

@rymsha rymsha commented Mar 30, 2026

No description provided.

@rymsha rymsha linked an issue Mar 30, 2026 that may be closed by this pull request
@rymsha rymsha requested a review from Copilot March 30, 2026 14:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to simplify Enonic XP app development by shifting configuration defaults to Gradle properties/providers, introducing a Settings plugin that registers an XP dependency version catalog, and updating plugin behavior/documentation accordingly.

Changes:

  • Migrate AppExtension to Gradle Property/ListProperty/SetProperty APIs and update consumers (AppPlugin, BundleConfigurator) to read values via providers.
  • Add com.enonic.xp.settings Settings plugin to create an xplib version catalog driven by xpVersion.
  • Update base plugin defaults (read xpVersion from gradle.properties, set Java toolchain convention) and refresh README usage examples.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main/java/com/enonic/gradle/xp/app/BundleConfigurator.java Switches bundle instructions/dev source paths to read from Property-based AppExtension.
src/main/java/com/enonic/gradle/xp/app/AppPlugin.java Sets systemVersion convention from xp extension; updates property access patterns and error text.
src/main/java/com/enonic/gradle/xp/app/AppExtension.java Refactors extension fields to Gradle Provider/Property types and adds conventions from Gradle properties.
src/main/java/com/enonic/gradle/xp/SettingsPlugin.java New settings plugin that registers an xplib version catalog when xpVersion is provided.
src/main/java/com/enonic/gradle/xp/BasePlugin.java Reads XP version via Gradle property and sets Java toolchain language level convention.
build.gradle.kts Publishes the new settings plugin to the Gradle Plugin Portal metadata.
README.md Documents the new plugins, version catalog usage, and property-based defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/enonic/gradle/xp/app/AppExtension.java
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/main/java/com/enonic/gradle/xp/BasePlugin.java Outdated
Comment thread src/main/java/com/enonic/gradle/xp/app/AppPlugin.java
@rymsha rymsha requested a review from Copilot March 30, 2026 15:58
@rymsha rymsha force-pushed the 204-simplify-app-development branch from 0d67928 to 11adfd6 Compare March 30, 2026 15:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/enonic/gradle/xp/app/AppExtension.java Outdated
Comment thread src/main/java/com/enonic/gradle/xp/SettingsPlugin.java
Comment thread src/main/java/com/enonic/gradle/xp/app/BundleConfigurator.java
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/enonic/gradle/xp/BasePlugin.java
Comment thread src/main/java/com/enonic/gradle/xp/app/AppExtension.java
Comment thread src/main/java/com/enonic/gradle/xp/app/AppExtension.java
Comment thread src/main/java/com/enonic/gradle/xp/app/AppExtension.java
Comment thread src/main/java/com/enonic/gradle/xp/SettingsPlugin.java
@rymsha rymsha added this to XP8 Mar 30, 2026
@rymsha rymsha removed this from XP8 Mar 30, 2026
@rymsha rymsha merged commit fb58429 into master Apr 1, 2026
1 check passed
@rymsha rymsha deleted the 204-simplify-app-development branch April 1, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify app development

4 participants