Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
ed7ffa74
Commit
ed7ffa74
authored
Jun 22, 2022
by
Magix
Committed by
GitHub
Jun 22, 2022
Browse files
Enable development repository for artifacts
Uploading dev builds to 4Benj Repo via Jenkins for plugin developers.
parents
4df068bb
b5c6b479
Changes
3
Show whitespace changes
Inline
Side-by-side
build.gradle
View file @
ed7ffa74
...
@@ -171,7 +171,16 @@ publishing {
...
@@ -171,7 +171,16 @@ publishing {
}
}
repositories
{
repositories
{
maven
{
maven
{
// change URLs to point to your repos, e.g. http://my.org/repo
if
(
version
.
endsWith
(
'-dev'
))
{
println
(
"Publishing to 4benj-maven"
)
url
'https://repo.4benj.com/releases'
name
'4benj-maven'
credentials
{
username
System
.
getenv
(
'benj_maven_username'
)
password
System
.
getenv
(
'benj_maven_token'
)
}
}
else
{
println
(
"Publishing to sonatype"
)
def
releasesRepoUrl
=
'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def
releasesRepoUrl
=
'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def
snapshotsRepoUrl
=
'https://s01.oss.sonatype.org/content/repositories/snapshots/'
def
snapshotsRepoUrl
=
'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url
=
version
.
endsWith
(
'SNAPSHOT'
)
?
snapshotsRepoUrl
:
releasesRepoUrl
url
=
version
.
endsWith
(
'SNAPSHOT'
)
?
snapshotsRepoUrl
:
releasesRepoUrl
...
@@ -180,6 +189,7 @@ publishing {
...
@@ -180,6 +189,7 @@ publishing {
credentials
(
PasswordCredentials
)
credentials
(
PasswordCredentials
)
}
}
}
}
}
}
}
clean
{
clean
{
...
@@ -225,7 +235,9 @@ eclipse {
...
@@ -225,7 +235,9 @@ eclipse {
}
}
signing
{
signing
{
if
(!
version
.
endsWith
(
'-dev'
))
{
sign
publishing
.
publications
.
mavenJava
sign
publishing
.
publications
.
mavenJava
}
}
}
javadoc
{
javadoc
{
...
...
src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java
View file @
ed7ffa74
...
@@ -17,8 +17,8 @@ public interface ExternalAuthenticator {
...
@@ -17,8 +17,8 @@ public interface ExternalAuthenticator {
* Called when an external account creation request is made.
* Called when an external account creation request is made.
* @param request The authentication request.
* @param request The authentication request.
*
*
* For developers: Use
{@link
AuthenticationRequest#getRequest()
}
to get the request body.
* For developers: Use AuthenticationRequest#getRequest() to get the request body.
* Use
{@link
AuthenticationRequest#getResponse()
}
to get the response body.
* Use AuthenticationRequest#getResponse() to get the response body.
*/
*/
void
handleAccountCreation
(
AuthenticationRequest
request
);
void
handleAccountCreation
(
AuthenticationRequest
request
);
...
@@ -26,8 +26,8 @@ public interface ExternalAuthenticator {
...
@@ -26,8 +26,8 @@ public interface ExternalAuthenticator {
* Called when an external password reset request is made.
* Called when an external password reset request is made.
* @param request The authentication request.
* @param request The authentication request.
*
*
* For developers: Use
{@link
AuthenticationRequest#getRequest()
}
to get the request body.
* For developers: Use AuthenticationRequest#getRequest() to get the request body.
* Use
{@link
AuthenticationRequest#getResponse()
}
to get the response body.
* Use AuthenticationRequest#getResponse() to get the response body.
*/
*/
void
handlePasswordReset
(
AuthenticationRequest
request
);
void
handlePasswordReset
(
AuthenticationRequest
request
);
}
}
src/main/java/emu/grasscutter/plugin/PluginManager.java
View file @
ed7ffa74
...
@@ -171,6 +171,11 @@ public final class PluginManager {
...
@@ -171,6 +171,11 @@ public final class PluginManager {
.
toList
().
forEach
(
handler
->
this
.
invokeHandler
(
event
,
handler
));
.
toList
().
forEach
(
handler
->
this
.
invokeHandler
(
event
,
handler
));
}
}
/**
* Gets a plugin's instance by its name.
* @param name The name of the plugin.
* @return Either null, or the plugin's instance.
*/
public
Plugin
getPlugin
(
String
name
)
{
public
Plugin
getPlugin
(
String
name
)
{
return
this
.
plugins
.
get
(
name
);
return
this
.
plugins
.
get
(
name
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment