Skip to content

Commit

Permalink
Add shadow to include multimodule dependencies inside plugin
Browse files Browse the repository at this point in the history
Release 0.3.0
  • Loading branch information
Mishkun committed May 8, 2023
1 parent 394e23e commit 3bb00d4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/xyz.mishkun.lobzik?style=flat-square&versionPrefix=0.3&versionSuffix=.0)

# Lobzik: Continuous Modularisation Toolkit

Lobzik is a gradle plugin designed to help Android developers chop their monolithic codebases into smaller pieces. This
Expand All @@ -16,7 +18,7 @@ To use Lobzik, add the following to your root `build.gradle.kts`:

```kotlin
plugins {
id("xyz.mishkun.lobzik") version "<lobzikVersion>"
id("xyz.mishkun.lobzik") version "0.3.0"
}
```

Expand Down
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
kotlin("jvm") version "1.7.21"
id("com.gradle.plugin-publish") version "1.2.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "xyz.mishkun.lobzik"
version = "0.1.0"
version = "0.3.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -36,7 +39,7 @@ val VERSION_ASM = "9.4"
dependencies {
implementation(gradleApi())
implementation(gradleKotlinDsl())
implementation(project(":graph-processing"))
implementation(project(":graph-processing", "shadow"))
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.10")
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.7.0")
implementation("com.android.tools.build:gradle-api:7.3.1")
Expand All @@ -48,3 +51,8 @@ dependencies {
tasks.test {
useJUnitPlatform()
}

tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set("")
this.isZip64 = true
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
1 change: 1 addition & 0 deletions graph-processing/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
kotlin("jvm")
id("com.github.johnrengelman.shadow") version "8.1.1"
}

repositories {
Expand Down

0 comments on commit 3bb00d4

Please sign in to comment.