66 lines
1.6 KiB
Groovy
66 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.intellij' version '1.17.1'
|
|
}
|
|
|
|
group = 'org.cobalyte'
|
|
version = '1.2.1'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
// Configure Gradle IntelliJ Plugin
|
|
intellij {
|
|
version = '2025.1'
|
|
type = 'RD' // Target IDE Platform - IC for IntelliJ IDEA Community Edition
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
}
|
|
|
|
// Configure plugin metadata
|
|
patchPluginXml {
|
|
sinceBuild = '231'
|
|
untilBuild = ''
|
|
pluginDescription = '''
|
|
A plugin for JetBrains IDEs that automatically prefixes commit messages with information extracted from branch names.
|
|
|
|
Features:
|
|
<ul>
|
|
<li>Extract information from branch names using configurable regex patterns</li>
|
|
<li>Format commit messages using configurable format patterns</li>
|
|
<li>Enable/disable the plugin from the commit dialog</li>
|
|
<li>Configure the plugin from the IDE settings</li>
|
|
</ul>
|
|
|
|
Example:
|
|
<ul>
|
|
<li>Branch name: feature/12345-add-new-feature</li>
|
|
<li>Commit message: "Initial implementation"</li>
|
|
<li>Result: "#12345 - Initial implementation"</li>
|
|
</ul>
|
|
'''
|
|
changeNotes = '''
|
|
<h3>Version 1.2.1</h3>
|
|
<ul>
|
|
<li>Added support for 2025.1</li>
|
|
</ul>
|
|
|
|
<h3>Version 1.2.0</h3>
|
|
<ul>
|
|
<li>Extended compatibility to support 2024.3.x IDEs including Rider 2024.3.6</li>
|
|
</ul>
|
|
|
|
<h3>Version 1.1.0</h3>
|
|
<ul>
|
|
<li>Initial release of the Commit Message Prefixer plugin</li>
|
|
</ul>
|
|
'''
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|