Skip to content

Commit 93a5795

Browse files
update gradle version, libraries versions, removed comments from build.gradle s
1 parent 85f902e commit 93a5795

File tree

6 files changed

+17
-86
lines changed

6 files changed

+17
-86
lines changed

build.gradle

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@ buildscript {
99
}
1010

1111
plugins {
12-
//id 'com.gradle.build-scan' version '2.3'
1312
id 'com.github.ben-manes.versions' version '0.21.0' // task: dependencyUpdates
1413
id 'org.ajoberstar.reckon' version '0.11.0'
1514
id 'org.sonarqube' version '2.7.1'
1615
}
1716

18-
//buildScan {
19-
// termsOfServiceUrl = 'https://gradle.com/terms-of-service'
20-
// termsOfServiceAgree = 'yes'
21-
//}
22-
2317
reckon {
2418
scopeFromProp()
2519
stageFromProp('beta', 'rc', 'final')
@@ -52,12 +46,13 @@ allprojects {
5246
ext {
5347
corda_release_group = 'net.corda'
5448
corda_release_version = '4.0'
55-
spoon_version = '7.4.0' //TODO: understand how to propagate this
49+
spoon_version = '7.4.0'
5650
assertj_version = '3.12.2'
57-
junit5_version = '5.4.2'
51+
junit5_version = '5.5.0'
5852
short_description='Gradle plugin to automatically generate graph that represent Corda flows interactions.'
5953
url='https://github.com/lucacampanella/corda-flows-doc-builder'
6054
git_url = url + ".git"
55+
kotlin_version = "1.3.41"
6156
}
6257

6358
group 'com.github.lucacampanella'
@@ -154,15 +149,15 @@ subprojects {
154149
artifact sourcesJar
155150
artifact javadocJar
156151
pom {
157-
//name = project.name todo: change fro gradle 5
152+
name = project.name
158153
description = project.short_description
159154
url = project.url
160-
// licenses {
161-
// license {
162-
// name = 'The Apache License, Version 2.0'
163-
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
164-
// }
165-
// }
155+
licenses {
156+
license {
157+
name = 'The Apache License, Version 2.0'
158+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
159+
}
160+
}
166161
}
167162
}
168163
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
#distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

graph-builder/build.gradle

Lines changed: 6 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1614
plugins {
1715
id 'application'
18-
// id 'maven-publish'
1916
}
2017
apply plugin: 'kotlin'
2118
apply 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:$kotlin_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

6351
task copyTestJarToResources(type: Copy) {
6452
from buildDir.toURI().toURL().toString() + "/libs/JarAnalyzerTestJar.jar";
@@ -110,53 +98,10 @@ task generateIndexFileForTests() {
11098

11199
test.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-
156101
publishing {
157102
publications {
158103
mavenJava(MavenPublication) {
159104
artifact shadowJar
160105
}
161106
}
162-
} //todo: change fro gradle 5
107+
}

graph-builder/src/test/java/com/github/lucacampanella/callgraphflows/staticanalyzer/testclasses/SimpleTestFlow.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public Acceptor(FlowSession otherSession) {
5050
@Override
5151
public Void call() throws FlowException {
5252

53-
boolean condition = true;
54-
5553
otherSession.receive(Boolean.class);
5654
otherSession.send("Test");
5755
return null;

plugin/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ plugins {
66

77
repositories {
88
mavenCentral()
9-
// maven {
10-
// url "https://dl.bintray.com/lucacampanella/mvn-release"
11-
// }
129
}
1310

1411
dependencies {

simple-flow-project/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ plugins {
99
id 'com.github.lucacampanella.plugin.flows-doc-builder-plugin'
1010
}
1111

12-
//apply plugin: 'com.github.lucacampanella.plugin.flows-doc-builder-plugin'
13-
1412
ext {
1513
corda_release_group = 'net.corda'
1614
corda_release_version = '4.0'
1715
}
1816
repositories {
19-
// Use jcenter for resolving your dependencies.
20-
// You can declare any Maven/Ivy/file repository here.
2117
mavenCentral()
2218
jcenter()
2319
}

0 commit comments

Comments
 (0)