Skip to content

Commit e3f0829

Browse files
committed
Fix build script to run with Gradle 7
1 parent 21aaa53 commit e3f0829

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.4.1
2+
- Fixed Gradle's script to use Gradle 7 [#68](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/68)
3+
14
## 1.4.0
25
- Updated the minor version of Azure SDK and other dependencies to ensure users of this plugin get upstream fixes and improvements [#67](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/67)
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

build.gradle

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,39 @@ repositories {
1414
}
1515

1616
dependencies {
17-
testCompile 'junit:junit:4.12'
18-
19-
compile 'com.microsoft.azure:azure-eventhubs:2.3.2'
20-
compile 'com.microsoft.azure:qpid-proton-j-extensions:1.2.4'
21-
compile 'com.microsoft.azure:azure-eventhubs-eph:2.5.2'
22-
compile 'com.microsoft.azure:azure-storage:8.6.6'
23-
runtime 'com.google.code.gson:gson:2.8.5'
24-
runtime 'org.apache.qpid:proton-j:0.33.9'
25-
compile 'org.apache.logging.log4j:log4j-api:2.9.1'
26-
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.9.1'
17+
testImplementation 'junit:junit:4.12'
18+
19+
implementation 'com.microsoft.azure:azure-eventhubs:2.3.2'
20+
implementation 'com.microsoft.azure:qpid-proton-j-extensions:1.2.4'
21+
implementation 'com.microsoft.azure:azure-eventhubs-eph:2.5.2'
22+
implementation 'com.microsoft.azure:azure-storage:8.6.6'
23+
implementation 'com.google.code.gson:gson:2.8.5'
24+
implementation 'org.apache.qpid:proton-j:0.33.9'
25+
implementation 'org.apache.logging.log4j:log4j-api:2.9.1'
26+
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.9.1'
2727
}
2828

2929

3030
task generateGemJarRequiresFile {
31+
configurations.implementation.canBeResolved = true
3132
doLast {
3233
File jars_file = file('lib/logstash-input-azure_event_hubs.rb')
3334
jars_file.newWriter().withWriter { w ->
3435
w << "# AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n"
3536
w << "require \'jar_dependencies\'\n"
36-
configurations.runtime.allDependencies.each {
37+
configurations.implementation.allDependencies.each {
3738
w << "require_jar(\'${it.group}\', \'${it.name}\', \'${it.version}\')\n"
3839
}
3940
}
4041
}
4142
}
4243

4344
task vendor {
45+
configurations.implementation.canBeResolved = true
4446
doLast {
4547
String vendorPathPrefix = "vendor/jar-dependencies"
46-
configurations.runtime.allDependencies.each { dep ->
47-
File f = configurations.runtime.filter { it.absolutePath.contains("${dep.group}" + File.separator + "${dep.name}" + File.separator + "${dep.version}") }.singleFile
48+
configurations.implementation.allDependencies.each { dep ->
49+
File f = configurations.implementation.filter { it.absolutePath.contains("${dep.group}" + File.separator + "${dep.name}" + File.separator + "${dep.version}") }.singleFile
4850
String groupPath = dep.group.replaceAll('\\.', '/')
4951
File newJarFile = file("${vendorPathPrefix}" + File.separator + "${groupPath}" + File.separator + "${dep.name}"+ File.separator + "${dep.version}" + File.separator + "${dep.name}-${dep.version}.jar")
5052
newJarFile.mkdirs()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
22

33
require 'jar_dependencies'
4-
require_jar('com.google.code.gson', 'gson', '2.8.5')
5-
require_jar('org.apache.qpid', 'proton-j', '0.33.9')
6-
require_jar('org.apache.logging.log4j', 'log4j-slf4j-impl', '2.9.1')
74
require_jar('com.microsoft.azure', 'azure-eventhubs', '2.3.2')
85
require_jar('com.microsoft.azure', 'qpid-proton-j-extensions', '1.2.4')
96
require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '2.5.2')
107
require_jar('com.microsoft.azure', 'azure-storage', '8.6.6')
8+
require_jar('com.google.code.gson', 'gson', '2.8.5')
9+
require_jar('org.apache.qpid', 'proton-j', '0.33.9')
1110
require_jar('org.apache.logging.log4j', 'log4j-api', '2.9.1')
11+
require_jar('org.apache.logging.log4j', 'log4j-slf4j-impl', '2.9.1')

0 commit comments

Comments
 (0)