From 65fca4d47478f1fda9ef2fb7a1ba0587d0ba96ef Mon Sep 17 00:00:00 2001 From: Yeff <76024824+YeffyCodeGit@users.noreply.github.com> Date: Wed, 7 Jul 2021 15:10:54 +0600 Subject: [PATCH] Update LICENSE.txt --- LISCENCE.txt => LICENSE.txt | 0 build.gradle | 45 +++++++++++++++++++ .../core/PastemystEndpoints.java | 8 ++++ 3 files changed, 53 insertions(+) rename LISCENCE.txt => LICENSE.txt (100%) create mode 100644 src/main/java/io/github/yeffycodegit/pastemystjava/core/PastemystEndpoints.java diff --git a/LISCENCE.txt b/LICENSE.txt similarity index 100% rename from LISCENCE.txt rename to LICENSE.txt diff --git a/build.gradle b/build.gradle index 82046c3..9056eec 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id 'maven-publish' } group 'io.github.yeffycodegit' @@ -20,6 +21,50 @@ dependencies { implementation 'com.google.code.gson:gson:2.8.7' } +publishing { + publications { + maven(MavenPublication) { + groupId = 'io.github.yeffycodegit' + artifactId = 'library' + version = '1.1' + + from components.java + } + } +} + +publishing { + publications { + mavenJava(MavenPublication) { + pom { + name = 'pastemyst.java' as Publication + description = 'A Java API Wrapper for the Pastemyst V2 API' as Publication + url = 'https://github.com/YeffyCodeGit/pastemyst.java' + + licenses { + license { + name = 'MIT License' + url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + } + } + + developers { + developer { + id = 'johnd' + name = 'John Doe' + email = 'john.doe@example.com' + } + } + scm { + connection = 'scm:git:git://example.com/my-library.git' + developerConnection = 'scm:git:ssh://example.com/my-library.git' + url = 'http://example.com/my-library/' + } + } + } + } +} + test { useJUnitPlatform() } \ No newline at end of file diff --git a/src/main/java/io/github/yeffycodegit/pastemystjava/core/PastemystEndpoints.java b/src/main/java/io/github/yeffycodegit/pastemystjava/core/PastemystEndpoints.java new file mode 100644 index 0000000..9c1eb2e --- /dev/null +++ b/src/main/java/io/github/yeffycodegit/pastemystjava/core/PastemystEndpoints.java @@ -0,0 +1,8 @@ +package io.github.yeffycodegit.pastemystjava.core; + +public class PastemystEndpoints { + public static final String PASTE_ENDPOINT = PastemystApi.BASE_ENDPOINT + PastemystApi.PASTE; + public static final String DATA_ENDPOINT = PastemystApi.BASE_ENDPOINT + PastemystApi.DATA; + public static final String TIME_ENDPOINT = PastemystApi.BASE_ENDPOINT + PastemystApi.TIME; + public static final String USER_ENDPOINT = PastemystApi.BASE_ENDPOINT + PastemystApi.USER; +}