@@ -5,7 +5,7 @@ import java.time.format.DateTimeFormatter
55buildscript {
66 repositories {
77 mavenCentral()
8- maven { url " https://repo.grails.org/grails/restricted" }
8+ maven { url = ' https://repo.grails.org/grails/restricted' }
99 maven {
1010 url = ' https://repository.apache.org/content/groups/snapshots'
1111 content {
@@ -15,39 +15,30 @@ buildscript {
1515 }
1616 dependencies {
1717 classpath platform(" org.apache.grails:grails-bom:$grailsVersion " )
18- classpath " org.apache.grails:grails-gradle-plugins"
18+ classpath ' org.apache.grails:grails-gradle-plugins'
1919 }
2020}
21+
2122apply plugin : ' groovy'
2223apply plugin : ' java-library'
2324apply plugin : ' org.apache.grails.gradle.grails-plugin'
2425apply plugin : ' org.apache.grails.gradle.grails-publish'
2526
26- group " org.grails.plugins"
27+ group = ' org.grails.plugins'
2728
2829ext {
29- buildInstant = java.util.Optional . ofNullable(System . getenv(" SOURCE_DATE_EPOCH" ))
30+ buildInstant = java.util.Optional . ofNullable(System . getenv(' SOURCE_DATE_EPOCH' ))
3031 .filter(s -> ! s. isEmpty())
3132 .map(Long ::parseLong)
3233 .map(Instant ::ofEpochSecond)
33- .orElseGet(Instant ::now)
34+ .orElseGet(Instant ::now) as Instant
3435 formattedBuildDate = DateTimeFormatter . ISO_INSTANT . format(buildInstant)
35- buildDate = (buildInstant as Instant ). atZone(ZoneOffset . UTC ) // for reproducible builds
36-
37- publishArtifactId = ' grails-spring-security-oauth2-google'
38- pomTitle = ' Spring Security Oauth2 Google Provider'
39- pomDescription = ' This plugin provides the oauth2 Google provider for grails-spring-security-oauth2 plugin.'
40- pomDevelopers = [
41- MatrixCrawler : ' Johannes Brunswicker' ,
42- rvanderwerf : ' Ryan Vanderwerf' ,
43- sbglasius : ' Søren Berg Glasius' ,
44- ]
45-
36+ buildDate = buildInstant. atZone(ZoneOffset . UTC ) // for reproducible builds
4637}
4738
4839repositories {
4940 mavenCentral()
50- maven { url " https://repo.grails.org/grails/restricted" }
41+ maven { url = ' https://repo.grails.org/grails/restricted' }
5142 maven {
5243 url = ' https://repository.apache.org/content/groups/snapshots'
5344 content {
@@ -58,32 +49,28 @@ repositories {
5849
5950dependencies {
6051 implementation platform(" org.apache.grails:grails-bom:$grailsVersion " )
61- compileOnly " org.springframework.boot:spring-boot-starter-logging"
62- compileOnly " org.springframework.boot:spring-boot-starter-validation"
63- compileOnly " org.springframework.boot:spring-boot-autoconfigure"
64- compileOnly " org.springframework.boot:spring-boot-starter"
65- compileOnly " org.apache.grails:grails-core"
66- profile " org.apache.grails.profiles:plugin"
67- runtimeOnly " org.fusesource.jansi:jansi"
52+ compileOnly ' org.springframework.boot:spring-boot-starter-logging'
53+ compileOnly ' org.springframework.boot:spring-boot-starter-validation'
54+ compileOnly ' org.springframework.boot:spring-boot-autoconfigure'
55+ compileOnly ' org.springframework.boot:spring-boot-starter'
56+ compileOnly ' org.apache.grails:grails-core'
6857
69- implementation ' org.apache.grails:grails-spring-security:7.0.0-M5 '
70- implementation ' org.apache.grails:grails-spring-security-oauth2:7.0.0-M5 '
58+ implementation ' org.apache.grails:grails-spring-security:7.0.0-SNAPSHOT '
59+ implementation ' org.apache.grails:grails-spring-security-oauth2:7.0.0-SNAPSHOT '
7160}
7261
7362grailsPublish {
7463 githubSlug = ' grails-plugins/grails-spring-security-oauth2-google'
7564 license {
7665 name = ' Apache-2.0'
7766 }
78- title = pomTitle
79- desc = pomDescription
80- developers = pomDevelopers
67+ title = ' Spring Security Oauth2 Google Provider'
68+ desc = ' This plugin provides the oauth2 Google provider for grails-spring-security-oauth2 plugin.'
69+ developers = [
70+ MatrixCrawler : ' Johannes Brunswicker' ,
71+ rvanderwerf : ' Ryan Vanderwerf' ,
72+ sbglasius : ' Søren Berg Glasius' ,
73+ ]
8174}
8275
83-
8476compileJava. options. release = javaVersion. toInteger()
85-
86- tasks. withType(Test ) {
87- useJUnitPlatform()
88- }
89-
0 commit comments