@@ -6,16 +6,13 @@ buildscript {
66 mavenCentral()
77 }
88 dependencies {
9- classpath ' com.github.jengelman.gradle.plugins:shadow:5.0.0' // 4.0.1'// todo: change fro gradle 5
10- // --------------------------------------- Added for publishing on sonartype
11- // classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'3
12- classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21'
9+ classpath ' com.github.jengelman.gradle.plugins:shadow:5.1.0'
10+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1311 }
1412}
1513
1614plugins {
1715 id ' application'
18- // id 'maven-publish'
1916}
2017apply plugin : ' kotlin'
2118apply plugin : ' com.github.johnrengelman.shadow'
@@ -37,28 +34,19 @@ dependencies {
3734 implementation " fr.inria.gforge.spoon:spoon-core:$spoon_version "
3835
3936 implementation " org.jboss.windup.decompiler.fernflower:fernflower:2.5.0.Final"
40- implementation " org.benf:cfr:0.135"
37+ implementation " org.benf:cfr:0.135" // 145 doesn't work for some reason
4138
4239 implementation " org.jfree:jfreesvg:3.4"
4340 implementation " org.slf4j:slf4j-simple:1.7.26"
4441 implementation " info.picocli:picocli:3.9.6"
4542
46- implementation " org.jetbrains.kotlin:kotlin-stdlib:1.3.21 "
43+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$k otlin_version "
4744
4845 testImplementation " org.slf4j:slf4j-simple:1.7.26"
4946 testImplementation project(" :test-utils" ). sourceSets. test. output
5047}
51- // jar {
52- // from configurations.implementation.collect {
53- //
54- // it.isDirectory() ? it : zipTree(it)
55- // }
56- // } todo: change fro gradle 5
57- mainClassName = ' com.github.lucacampanella.callgraphflows.Main'
5848
59- // application {
60- // mainClassName = 'com.github.lucacampanella.callgraphflows.Main'
61- // }
49+ mainClassName = ' com.github.lucacampanella.callgraphflows.Main'
6250
6351task copyTestJarToResources (type : Copy ) {
6452 from buildDir. toURI(). toURL(). toString() + " /libs/JarAnalyzerTestJar.jar" ;
@@ -110,53 +98,10 @@ task generateIndexFileForTests() {
11098
11199test. finalizedBy generateIndexFileForTests
112100
113- // task copyKotlinTestJarToResources(type: Copy) {
114- // from buildDir.toURI().toURL().toString() + "/libs/KotlinTestJar.jar";
115- // into sourceSets.test.output.resourcesDir
116- // }
117- //
118- // task createKotlinTestJar(type: Jar) {
119- //
120- // // archiveFileName = "KotlinTestJar.jar"
121- // // from {
122- // // sourceSets.test.output
123- // // }
124- // // //include '**/kotlin/**/*.class'
125- // // includeEmptyDirs false
126- //
127- //
128- // println file(buildDir.toString() + "/classes/kotlin/test").listFiles({File file -> file.toString().contains("KotlinTestFlow")} as FileFilter)
129- // from file(buildDir.toString() + "/classes/kotlin/test").listFiles({File file -> file.toString().contains("KotlinTestFlow")} as FileFilter)
130- // archiveFileName = "KotlinTestJar.jar"
131- // // doLast {
132- // // println "kotlin test jar"
133- // // println sourceSets.test.output.classesDirs
134- // // println sourceSets.test.output.classesDirs.asFileTree.filter {
135- // // it.toString().contains("KotlinTestFlow")
136- // // }.collect()
137- // //
138- // //
139- // // //println file(sourceSets.test.output.asPath).listFiles()
140- // // //println configurations.testRuntimeClasspath.asPath//collect { it.isDirectory() ? it : zipTree(it) }
141- // // from sourceSets.test.output.classesDirs.asFileTree.filter { it.toString().contains("KotlinTestFlow")}.collect()
142- // // }
143- //
144- // }
145- //
146- // copyKotlinTestJarToResources.dependsOn(createKotlinTestJar)
147- // tasks.withType(Test).each{it -> it.dependsOn(copyKotlinTestJarToResources)}
148-
149-
150- // createKotlinTestJar.dependsOn(compileTestKotlin)
151- // processTestResources.dependsOn(createKotlinTestJar)
152- // processTestResources {
153- // from file(buildDir.toString() + "/libs/KotlinTestJar.jar")
154- // }
155-
156101publishing {
157102 publications {
158103 mavenJava(MavenPublication ) {
159104 artifact shadowJar
160105 }
161106 }
162- } // todo: change fro gradle 5
107+ }
0 commit comments