Skip to content

Commit

Permalink
Make the extension properties immutable. This gets rid of a deprecati…
Browse files Browse the repository at this point in the history
…on warning in Gradle 6.0.
  • Loading branch information
nc-bmv committed Nov 11, 2019
1 parent bc59f14 commit a192781
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Apply the plugin ID "com.github.bjornvester.wsdl2java" as specific in the [Gradl

```kotlin
plugins {
id("com.github.bjornvester.wsdl2java") version "0.3"
id("com.github.bjornvester.wsdl2java") version "0.4"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.github.bjornvester"
version = "0.3"
version = "0.4"

repositories {
jcenter()
Expand Down Expand Up @@ -38,7 +38,7 @@ pluginBundle {
"wsdl2JavaPlugin" {
displayName = "Gradle Wsdl2Java plugin"
description = "Changes: \n" +
"- Fix path separator in the WsdlLocation for the generated client when building on Windows"
"- Make the extension properties immutable. This gets rid of a deprecation warning in Gradle 6.0."
tags = listOf("wsdl2java", "cxf", "wsimport")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import org.gradle.api.provider.Property
import javax.inject.Inject

open class Wsdl2JavaPluginExtension @Inject constructor(project: Project) {
var wsdlDir: DirectoryProperty = project.objects.directoryProperty().convention(project.layout.projectDirectory.dir("src/main/resources"))
var wsdlFiles: ConfigurableFileCollection = project.objects.fileCollection()
var generatedSourceDir: DirectoryProperty = project.objects.directoryProperty().convention(project.layout.buildDirectory.dir("generated/wsdl2java"))
var cxfVersion: Property<String> = project.objects.property(String::class.java).convention("3.3.2")
val wsdlDir: DirectoryProperty = project.objects.directoryProperty().convention(project.layout.projectDirectory.dir("src/main/resources"))
val wsdlFiles: ConfigurableFileCollection = project.objects.fileCollection()
val generatedSourceDir: DirectoryProperty = project.objects.directoryProperty().convention(project.layout.buildDirectory.dir("generated/wsdl2java"))
val cxfVersion: Property<String> = project.objects.property(String::class.java).convention("3.3.2")
}

0 comments on commit a192781

Please sign in to comment.