@@ -5,7 +5,7 @@ import java.time.format.DateTimeFormatter
5
5
buildscript {
6
6
repositories {
7
7
mavenCentral()
8
- maven { url " https://repo.grails.org/grails/restricted" }
8
+ maven { url = ' https://repo.grails.org/grails/restricted' }
9
9
maven {
10
10
url = ' https://repository.apache.org/content/groups/snapshots'
11
11
content {
@@ -15,39 +15,30 @@ buildscript {
15
15
}
16
16
dependencies {
17
17
classpath platform(" org.apache.grails:grails-bom:$grailsVersion " )
18
- classpath " org.apache.grails:grails-gradle-plugins"
18
+ classpath ' org.apache.grails:grails-gradle-plugins'
19
19
}
20
20
}
21
+
21
22
apply plugin : ' groovy'
22
23
apply plugin : ' java-library'
23
24
apply plugin : ' org.apache.grails.gradle.grails-plugin'
24
25
apply plugin : ' org.apache.grails.gradle.grails-publish'
25
26
26
- group " org.grails.plugins"
27
+ group = ' org.grails.plugins'
27
28
28
29
ext {
29
- buildInstant = java.util.Optional . ofNullable(System . getenv(" SOURCE_DATE_EPOCH" ))
30
+ buildInstant = java.util.Optional . ofNullable(System . getenv(' SOURCE_DATE_EPOCH' ))
30
31
.filter(s -> ! s. isEmpty())
31
32
.map(Long ::parseLong)
32
33
.map(Instant ::ofEpochSecond)
33
- .orElseGet(Instant ::now)
34
+ .orElseGet(Instant ::now) as Instant
34
35
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
46
37
}
47
38
48
39
repositories {
49
40
mavenCentral()
50
- maven { url " https://repo.grails.org/grails/restricted" }
41
+ maven { url = ' https://repo.grails.org/grails/restricted' }
51
42
maven {
52
43
url = ' https://repository.apache.org/content/groups/snapshots'
53
44
content {
@@ -58,32 +49,28 @@ repositories {
58
49
59
50
dependencies {
60
51
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'
68
57
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 '
71
60
}
72
61
73
62
grailsPublish {
74
63
githubSlug = ' grails-plugins/grails-spring-security-oauth2-google'
75
64
license {
76
65
name = ' Apache-2.0'
77
66
}
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
+ ]
81
74
}
82
75
83
-
84
76
compileJava. options. release = javaVersion. toInteger()
85
-
86
- tasks. withType(Test ) {
87
- useJUnitPlatform()
88
- }
89
-
0 commit comments