@@ -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,38 +15,29 @@ 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}
2121apply plugin : ' groovy'
2222apply plugin : ' java-library'
2323apply plugin : ' org.apache.grails.gradle.grails-plugin'
2424apply plugin : ' org.apache.grails.gradle.grails-publish'
2525
26- group " org.grails.plugins"
26+ group = ' org.grails.plugins'
2727
2828ext {
2929 buildInstant = java.util.Optional . ofNullable(System . getenv(" SOURCE_DATE_EPOCH" ))
3030 .filter(s -> ! s. isEmpty())
3131 .map(Long ::parseLong)
3232 .map(Instant ::ofEpochSecond)
33- .orElseGet(Instant ::now)
33+ .orElseGet(Instant ::now) as Instant
3434 formattedBuildDate = DateTimeFormatter . ISO_INSTANT . format(buildInstant)
35- buildDate = (buildInstant as Instant ). atZone(ZoneOffset . UTC ) // for reproducible builds
36-
37- publishArtifactId = ' grails-spring-security-oauth2-oidc'
38- pomTitle = ' Grails Spring Security OAuth2 OIDC Provider Plugin'
39- pomDescription = ' This plugin provides the oauth2 OIDC provider for grails-spring-security-oauth2 plugin.'
40- pomDevelopers = [
41- sbglasius : ' Søren Berg Glasius' ,
42- ]
43-
35+ buildDate = buildInstant. atZone(ZoneOffset . UTC ) // for reproducible builds
4436}
4537
46-
4738repositories {
4839 mavenCentral()
49- maven { url " https://repo.grails.org/grails/restricted" }
40+ maven { url = ' https://repo.grails.org/grails/restricted' }
5041 maven {
5142 url = ' https://repository.apache.org/content/groups/snapshots'
5243 content {
@@ -57,13 +48,11 @@ repositories {
5748
5849dependencies {
5950 implementation platform(" org.apache.grails:grails-bom:$grailsVersion " )
60- compileOnly " org.springframework.boot:spring-boot-starter-logging"
61- compileOnly " org.springframework.boot:spring-boot-starter-validation"
62- compileOnly " org.springframework.boot:spring-boot-autoconfigure"
63- compileOnly " org.springframework.boot:spring-boot-starter"
64- compileOnly " org.apache.grails:grails-core"
65- profile " org.apache.grails.profiles:plugin"
66- runtimeOnly " org.fusesource.jansi:jansi"
51+ compileOnly ' org.springframework.boot:spring-boot-starter-logging'
52+ compileOnly ' org.springframework.boot:spring-boot-starter-validation'
53+ compileOnly ' org.springframework.boot:spring-boot-autoconfigure'
54+ compileOnly ' org.springframework.boot:spring-boot-starter'
55+ compileOnly ' org.apache.grails:grails-core'
6756
6857 implementation ' org.apache.grails:grails-spring-security:7.0.0-M5'
6958 implementation ' org.apache.grails:grails-spring-security-oauth2:7.0.0-M5'
@@ -76,15 +65,11 @@ grailsPublish {
7665 license {
7766 name = ' Apache-2.0'
7867 }
79- title = pomTitle
80- desc = pomDescription
81- developers = pomDevelopers
68+ title = ' Grails Spring Security OAuth2 OIDC Provider Plugin'
69+ desc = ' This plugin provides the oauth2 OIDC provider for grails-spring-security-oauth2 plugin.'
70+ developers = [
71+ sbglasius : ' Søren Berg Glasius' ,
72+ ]
8273}
8374
84-
8575compileJava. options. release = javaVersion. toInteger()
86-
87- tasks. withType(Test ) {
88- useJUnitPlatform()
89- }
90-
0 commit comments