-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Groovy3] Simplify Groovy 2/3 compatibility layer
- Loading branch information
Showing
8 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//Module with compatibility layer to keep codebase compilable with both Groovy 2.5 and 3.0 | ||
// | ||
//WARNING. Do not mix groovy:3.x and spock-groovy2-compat:2.x-groovy-2.5 jars on classpath! | ||
|
||
apply from: script("publishMaven") | ||
|
||
ext.displayName = "Spock Framework - Groovy 2 Compatibility Module" | ||
|
||
description = "Spock's Groovy 2 Compatibility Module provides support for using Spock 2 with Groovy 2.5." | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Created-By': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})".toString(), | ||
'Build-Date': buildDate, | ||
'Build-Time': buildTime, | ||
'Build-Revision': versioning.info.commit, | ||
'Specification-Title': project.name, | ||
'Specification-Version': baseVersion, | ||
'Specification-Vendor': 'spockframework.org', | ||
'Implementation-Title': project.name, | ||
'Implementation-Version': variantLessVersion, | ||
'Implementation-Vendor': 'spockframework.org', | ||
'Automatic-Module-Name': 'org.spockframework.spring' | ||
) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.