Skip to content

Commit

Permalink
Reconfigure shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishkun committed May 30, 2023
1 parent f72e1a7 commit 870ca82
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 34 deletions.
33 changes: 19 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.mishkun.lobzik"
version = "0.5.0"
version = "0.6.0-SNAPSHOT"

repositories {
mavenCentral()
Expand All @@ -33,31 +33,36 @@ gradlePlugin {
}
}

kotlin {
this.jvmToolchain(11)
}


val VERSION_ASM = "9.4"

val shadowed by configurations.creating {
extendsFrom(configurations.implementation.get())
}
val shade by configurations.creating
configurations.implementation.configure { extendsFrom(shade) }

dependencies {
runtimeOnly(gradleApi())
implementation(gradleKotlinDsl())
shadowed(project(":graph-processing"))
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")
implementation("org.ow2.asm:asm:$VERSION_ASM")
implementation("org.ow2.asm:asm-tree:$VERSION_ASM")
compileOnly(gradleApi())
compileOnly(gradleKotlinDsl())
shade(files("libs/gephi-toolkit-0.10.0-all.jar"))
shadow("org.jetbrains.kotlinx:kotlinx-html-jvm:0.8.0")
shadow("space.kscience:plotlykt-core:0.5.0")
shadow("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.10")
shadow("com.github.doyaaaaaken:kotlin-csv-jvm:1.7.0")
shadow("com.android.tools.build:gradle-api:7.3.1")
shadow("org.ow2.asm:asm:$VERSION_ASM")
shadow("org.ow2.asm:asm-tree:$VERSION_ASM")
testImplementation(kotlin("test"))
}

tasks.test {
useJUnitPlatform()
}

tasks.named<ShadowJar>("shadowJar") {
configurations = listOf(shadowed)
tasks.withType<ShadowJar> {
configurations = listOf(shade)
archiveClassifier.set("")
this.isZip64 = true
}
19 changes: 0 additions & 19 deletions graph-processing/build.gradle.kts

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = "lobzik"
include(":graph-processing")
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package xyz.mishkun.lobzik.graph

import kotlinx.html.*
Expand Down
File renamed without changes.

0 comments on commit 870ca82

Please sign in to comment.