This repository was archived by the owner on Mar 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 29
29
env :
30
30
DEVELOCITY_BUILD_CACHE_NODE_USER : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
31
31
DEVELOCITY_BUILD_CACHE_NODE_KEY : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
32
+ GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
32
33
run : ./gradlew build
33
34
- name : " 📤 Publish Snapshot to repo.grails.org"
34
35
if : success() && github.event_name == 'push'
Original file line number Diff line number Diff line change 32
32
- name : " 📤 Publish to Sonatype"
33
33
id : publish
34
34
env :
35
+ GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
35
36
DEVELOCITY_BUILD_CACHE_NODE_USER : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
36
37
DEVELOCITY_BUILD_CACHE_NODE_KEY : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
37
38
NEXUS_PUBLISH_USERNAME : ${{ secrets.NEXUS_PUBLISH_USERNAME }}
50
51
id : assemble
51
52
if : steps.publish.outcome == 'success'
52
53
env :
54
+ GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
53
55
DEVELOCITY_BUILD_CACHE_NODE_USER : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
54
56
DEVELOCITY_BUILD_CACHE_NODE_KEY : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
55
57
run : ./gradlew assemble
Original file line number Diff line number Diff line change @@ -11,14 +11,20 @@ group = 'org.grails.plugins'
11
11
repositories {
12
12
mavenCentral()
13
13
maven { url = ' https://repo.grails.org/grails/core' }
14
- }
15
-
16
- java {
17
- toolchain {
18
- languageVersion = JavaLanguageVersion . of(17 )
14
+ if (System . getenv(" GITHUB_MAVEN_PASSWORD" ) && ! grailsVersion. endsWith(' -SNAPSHOT' )) {
15
+ System . out. println (" Adding Grails Core Repo" )
16
+ maven {
17
+ url = ' https://maven.pkg.github.com/grails/grails-core'
18
+ credentials {
19
+ username = ' DOES_NOT_MATTER'
20
+ password = System . getenv(" GITHUB_MAVEN_PASSWORD" )
21
+ }
22
+ }
19
23
}
20
24
}
21
25
26
+ compileJava. options. release = 17
27
+
22
28
dependencies {
23
29
implementation platform(" org.grails:grails-bom:$grailsVersion " )
24
30
api " org.grails:grails-plugin-rest"
Original file line number Diff line number Diff line change 1
1
projectVersion =6.0.0-SNAPSHOT
2
- grailsVersion =7.0.0-SNAPSHOT
2
+ grailsVersion =7.0.0-M1
3
3
groovyVersion =4.0.24
4
4
5
5
org.gradle.caching =true
You can’t perform that action at this time.
0 commit comments