@@ -6,17 +6,15 @@ buildscript {
6
6
repositories {
7
7
mavenLocal()
8
8
mavenCentral()
9
- jcenter()
10
9
}
11
10
}
12
11
13
12
plugins {
14
- id " me.champeau.gradle. jmh" version " 0.5.0 "
13
+ id " me.champeau.jmh" version " 0.6.6 "
15
14
}
16
15
repositories {
17
16
mavenLocal()
18
17
mavenCentral()
19
- jcenter()
20
18
}
21
19
22
20
apply plugin : ' java'
@@ -40,13 +38,13 @@ compileJava.options.encoding = 'UTF-8'
40
38
task sourcesJar (type : Jar , dependsOn : classes) {
41
39
from sourceSets. main. allSource
42
40
classifier ' sources'
43
- extension ' jar'
41
+ archiveExtension = ' jar'
44
42
}
45
43
46
44
task javadocJar (type : Jar , dependsOn : javadoc) {
47
45
from javadoc. destinationDir
48
46
classifier ' javadoc'
49
- extension ' jar'
47
+ archiveExtension = ' jar'
50
48
}
51
49
52
50
configurations. create(' sources' )
@@ -93,9 +91,9 @@ dependencies {
93
91
provided group : " org.apache.logging.log4j" , name : " log4j-core" , version : " 2.6.2"
94
92
provided ' org.jruby:jruby-core:9.1.12.0'
95
93
provided fileTree(dir : logstashCoreGemPath, include : ' **/*.jar' )
96
- testCompile ' junit:junit:4.12'
97
- testCompile ' org.assertj:assertj-core:3.8.0'
98
- jmhCompile fileTree(dir : logstashCoreGemPath, include : ' **/*.jar' )
94
+ testImplementation ' junit:junit:4.12'
95
+ testImplementation ' org.assertj:assertj-core:3.8.0'
96
+ jmh fileTree(dir : logstashCoreGemPath, include : ' **/*.jar' )
99
97
}
100
98
101
99
task generateGemJarRequiresFile {
@@ -104,7 +102,7 @@ task generateGemJarRequiresFile {
104
102
jars_file. newWriter(). withWriter { w ->
105
103
w << " # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n "
106
104
w << " require \' jar_dependencies\'\n "
107
- configurations. runtime . allDependencies. each {
105
+ configurations. runtimeClasspath . allDependencies. each {
108
106
w << " require_jar(\' ${ it.group} \' , \' ${ it.name} \' , \' ${ it.version} \' )\n "
109
107
}
110
108
w << " require_jar(\' ${ project.group} \' , \' ${ project.name} \' , \' ${ project.version} \' )\n "
0 commit comments