Skip to content

Commit

Permalink
Merge pull request #41 from vpa1977/shadow-jar
Browse files Browse the repository at this point in the history
fix: use shadow jar to package dependencies
  • Loading branch information
vpa1977 authored Oct 21, 2024
2 parents 89de3ca + fabb01b commit 75c6691
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 15 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ To use the plugin, apply the following two steps:
**Groovy**

plugins {
id 'io.github.rockcrafters.rockcraft' version '0.2.1'
id 'io.github.rockcrafters.rockcraft' version '0.2.2'
}

**Kotlin**

plugins {
id("io.github.rockcrafters.rockcraft") version "0.2.1"
id("io.github.rockcrafters.rockcraft") version "0.2.2"
}

##### Alternatively, you can use the `buildscript` DSL:
Expand All @@ -73,7 +73,7 @@ To use the plugin, apply the following two steps:
}
}
dependencies {
classpath 'io.github.rockcrafters.rockcraft:0.2.1'
classpath 'io.github.rockcrafters.rockcraft:0.2.2'
}
}
apply plugin: 'io.github.rockcrafters.rockcraft-plugin'
Expand All @@ -87,7 +87,7 @@ To use the plugin, apply the following two steps:
}
}
dependencies {
classpath("io.github.rockcrafters.rockcraft:0.2.1")
classpath("io.github.rockcrafters.rockcraft:0.2.2")
}
}
apply(plugin = "io.github.rockcrafters.rockcraft")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
allprojects {
version = "0.2.1"
version = "0.2.2"
group = "io.github.rockcrafters"
apply(plugin = "maven-publish")
plugins.withType<MavenPublishPlugin>().configureEach {
Expand Down
2 changes: 1 addition & 1 deletion examples/gradle/app-options/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id('application')
id('io.github.rockcrafters.rockcraft') version "0.2.1"
id('io.github.rockcrafters.rockcraft') version "0.2.2"
}
version = 0.01

Expand Down
2 changes: 1 addition & 1 deletion examples/gradle/beryx-jlink/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id('org.beryx.jlink') version "2.24.1"
id('io.github.rockcrafters.rockcraft') version "0.2.1"
id('io.github.rockcrafters.rockcraft') version "0.2.2"
}
version = 0.01

Expand Down
2 changes: 1 addition & 1 deletion examples/gradle/beryx-runtime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id('org.beryx.runtime') version "1.12.5"
id('io.github.rockcrafters.rockcraft') version "0.2.1"
id('io.github.rockcrafters.rockcraft') version "0.2.2"
}
version = 0.01

Expand Down
2 changes: 1 addition & 1 deletion examples/gradle/spring-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id 'io.github.rockcrafters.rockcraft' version '0.2.1'
id 'io.github.rockcrafters.rockcraft' version '0.2.2'
}

group = 'com.example'
Expand Down
2 changes: 1 addition & 1 deletion examples/maven/custom-rockcraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<plugin>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-maven-plugin</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
<executions>
<execution>
<configuration>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven/shaded-jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<plugin>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-maven-plugin</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
<executions>
<execution>
<configuration>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven/spring-boot-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<plugin>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-maven-plugin</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
<executions>
<execution>
<configuration>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-parent</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
<packaging>pom</packaging>
<properties>
<maven.compiler.target>8</maven.compiler.target>
Expand Down
5 changes: 5 additions & 0 deletions rockcraft-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id("com.gradleup.shadow") version "8.3.3"
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "1.3.0"
id ("org.gradlex.reproducible-builds") version "1.0"
Expand All @@ -9,6 +10,10 @@ repositories {
mavenCentral()
}

tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveClassifier.set("")
}

dependencies {
implementation(project(":rockcraft"))
implementation(libs.osdetector)
Expand Down
2 changes: 1 addition & 1 deletion rockcraft-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-parent</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
</parent>

<packaging>maven-plugin</packaging>
Expand Down
2 changes: 1 addition & 1 deletion rockcraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>io.github.rockcrafters</groupId>
<artifactId>rockcraft-parent</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 75c6691

Please sign in to comment.