@@ -25,7 +25,7 @@ import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
2525 * under the License.
2626 */
2727apply plugin : " java"
28- apply plugin : ' maven'
28+ apply plugin : ' maven-publish '
2929apply plugin : " distribution"
3030apply plugin : " idea"
3131
@@ -37,13 +37,13 @@ sourceCompatibility = JavaVersion.VERSION_1_8
3737buildscript {
3838 repositories {
3939 mavenCentral()
40- jcenter ()
40+ gradlePluginPortal ()
4141 }
4242
4343 dependencies {
4444 classpath group : ' org.jruby' , name : ' jruby-complete' , version : " 9.2.11.0"
45- classpath ' com.github.jengelman.gradle.plugins:shadow:4 .0.4 '
46- classpath ' de.undercouch:gradle-download-task:3.2.0 '
45+ classpath ' gradle.plugin. com.github.jengelman.gradle.plugins:shadow:7 .0.0 '
46+ classpath ' de.undercouch:gradle-download-task:4.0.4 '
4747 }
4848}
4949
@@ -85,20 +85,21 @@ task downloadTestYaml(type: Download, overwrite: false) {
8585 dest buildDir. toPath(). resolve(' resources/test' ). toFile()
8686}
8787
88- task verifyYaml (type : Verify , dependsOn : [patchYaml]) {
88+ task verifyYaml (type : Verify , dependsOn : [patchYaml, processResources]) {
89+ inputs. file(" ${ buildDir} /resources/main/regexes.yaml" )
8990 src buildDir. toPath(). resolve(' resources/main/regexes.yaml' ). toFile()
9091 algorithm ' SHA1'
9192 checksum ' 5a8ea18a9c9153e83159b8662e3f6650fbca60a8' // after replacement
9293}
9394
9495dependencies {
95- compile group : ' org.apache.commons' , name : ' commons-collections4' , version : ' 4.1'
96- compile group : ' org.yaml' , name : ' snakeyaml' , version : ' 1.18'
97- compile group : ' commons-collections' , name : ' commons-collections' , version : ' 3.2.2'
98- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
99- testCompile group : ' org.hamcrest' , name : ' hamcrest-all' , version : ' 1.3'
100- testRuntime group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
101- testRuntime group : ' org.slf4j' , name : ' slf4j-log4j12' , version : ' 1.7.25'
96+ implementation group : ' org.apache.commons' , name : ' commons-collections4' , version : ' 4.1'
97+ implementation group : ' org.yaml' , name : ' snakeyaml' , version : ' 1.18'
98+ implementation group : ' commons-collections' , name : ' commons-collections' , version : ' 3.2.2'
99+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
100+ testImplementation group : ' org.hamcrest' , name : ' hamcrest-all' , version : ' 1.3'
101+ testImplementation group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
102+ testImplementation group : ' org.slf4j' , name : ' slf4j-log4j12' , version : ' 1.7.25'
102103}
103104
104105test {
@@ -118,7 +119,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
118119
119120shadowJar {
120121 dependsOn ' verifyYaml'
121- classifier = null
122+ archiveClassifier = null
122123}
123124
124125task vendor (dependsOn : shadowJar) {
0 commit comments