Skip to content

Commit dc424ec

Browse files
committed
feat(build): poc cli
1 parent 94dfdd3 commit dc424ec

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

cli/CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# spotless-cli releases
2+
3+
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format
4+
5+
## [Unreleased]
6+
7+
## [0.0.1] - 2024-11-06
8+
Anchor version number.

cli/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id 'org.graalvm.buildtools.native'
3+
id 'application'
4+
id 'com.gradleup.shadow'
35
}
46
apply from: rootProject.file('gradle/changelog.gradle')
57
ext.artifactId = project.artifactIdGradle
@@ -48,6 +50,12 @@ tasks.withType(org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask).configu
4850
notCompatibleWithConfigurationCache('https://github.com/britter/maven-plugin-development/issues/8')
4951
}
5052

53+
application {
54+
mainClass = 'com.diffplug.spotless.cli.SpotlessCLI'
55+
applicationName = 'spotless'
56+
archivesBaseName = 'spotless-cli'
57+
}
58+
5159
// use tasks 'nativeCompile' and 'nativeRun' to compile and run the native image
5260
graalvmNative {
5361
binaries {

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ plugins {
2525
id 'dev.equo.ide' version '1.7.8' apply false
2626
// https://github.com/graalvm/native-build-tools/releases
2727
id 'org.graalvm.buildtools.native' version '0.10.2' apply false
28+
// https://github.com/GradleUp/shadow/releases
29+
id 'com.gradleup.shadow' version '8.3.5' apply false
2830
}
2931

3032
dependencyResolutionManagement {

0 commit comments

Comments
 (0)