You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsCentralPublishGradlePlugin.groovy
+16-19Lines changed: 16 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,19 @@ grailsPublish {
66
66
developers = [johndoe:"John Doe"]
67
67
}
68
68
69
-
The values can also be placed in PROJECT_HOME/gradle.properties or USER_HOME/gradle.properties
69
+
Your publishing user and key can also be placed in PROJECT_HOME/gradle.properties or USER_HOME/gradle.properties. For example:
70
+
71
+
bintrayUser=user
72
+
bintrayKey=key
73
+
grailsPortalUsername=myusername
74
+
grailsPortalPassword=mypassword
75
+
76
+
Or using environment variables:
77
+
78
+
BINTRAY_USER=user
79
+
BINTRAY_KEY=key
80
+
GRAILS_PORTAL_USERNAME=myusername
81
+
GRAILS_PORTAL_PASSWORD=mypassword
70
82
"""
71
83
}
72
84
@@ -104,9 +116,6 @@ The values can also be placed in PROJECT_HOME/gradle.properties or USER_HOME/gra
104
116
if(publishExtension.user) {
105
117
bintrayExtension.user = publishExtension.user
106
118
}
107
-
elseif(!bintrayExtension.user) {
108
-
thrownewRuntimeException(getErrorMessage("user"))
109
-
}
110
119
if(publishExtension.repo) {
111
120
bintrayExtension.pkg.repo = publishExtension.repo
112
121
}
@@ -122,9 +131,6 @@ The values can also be placed in PROJECT_HOME/gradle.properties or USER_HOME/gra
0 commit comments