Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Implementation of the public discord statuspage api #55

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
gradlew binary
gradlew.bat binary
/gradle/wrapper/gradle-wrapper.properties binary

.gitattributes text eol=crlf

Expand Down
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,12 @@ publishing {
}
}
}

dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { selection ->
if ( ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier -> selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ } )
selection.reject('only a release candidate')
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.jagrosh.jdautilities.commons.async;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.Future;

public interface AsyncFuture<T> extends Future<T>, CompletionStage<T> {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.jagrosh.jdautilities.commons.async;

import java.util.concurrent.CompletableFuture;

public class AsyncTask<T> extends CompletableFuture<T> implements AsyncFuture<T>
{
@Override
public CompletableFuture<T> toCompletableFuture()
{
throw new UnsupportedOperationException("Access to the CompletableFuture is not supported.");
}
}
19 changes: 2 additions & 17 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
#
# Copyright 2016-2018 John Grosh (jagrosh) & Kaidan Gustave (TheMonitorLizard)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ include ':commons'
include ':doc'
include ':examples'
include ':menu'
include ':statuspage'
3 changes: 3 additions & 0 deletions statuspage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Statuspage Package

This API can be used to retrieve data from [https://status.discordapp.com](https://status.discordapp.com).
26 changes: 26 additions & 0 deletions statuspage/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2016-2018 John Grosh (jagrosh) & Kaidan Gustave (TheMonitorLizard)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
includeInParent = false

dependencies {
compile okhttp()
compile json()
compile findbugs()

compile commons()

testCompile junit()
}
Loading