Skip to content

Commit 71842d4

Browse files
authored
Merge pull request #3 from NotMyFault/main
Don't fail building on modern Java
1 parent f580258 commit 71842d4

File tree

11 files changed

+1816
-26
lines changed

11 files changed

+1816
-26
lines changed

.editorconfig

Lines changed: 1013 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "validate gradle wrapper"
2+
3+
on: ["pull_request", "push"]
4+
5+
jobs:
6+
build:
7+
runs-on: "ubuntu-20.04"
8+
steps:
9+
- name: "Checkout Repository"
10+
uses: "actions/checkout@v2.3.4"
11+
- name: "Validate Gradle Wrapper"
12+
uses: "gradle/wrapper-validation-action@v1.0.4"

.github/workflows/gradle.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "build"
2+
3+
on: ["pull_request", "push"]
4+
5+
jobs:
6+
build:
7+
runs-on: "ubuntu-20.04"
8+
steps:
9+
- name: "Checkout Repository"
10+
uses: "actions/checkout@v2.3.4"
11+
- name: "Setup JDK 16"
12+
uses: "actions/setup-java@v2.2.0"
13+
with:
14+
distribution: "temurin"
15+
java-version: "16"
16+
- name: "Clean Build"
17+
run: "./gradlew clean build"

HEADER.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
_____ _
2+
| __ \ | |
3+
| |__) |_ _ ___| |_ ___ _ __
4+
| ___/ _` / __| __/ _ \ '__|
5+
| | | (_| \__ \ || __/ |
6+
|_| \__,_|___/\__\___|_|
7+
8+
Paste service used to submit data to the IncendoPasteViewer
9+
Copyright (C) 2021 IntellectualSites
10+
11+
This program is free software: you can redistribute it and/or modify
12+
it under the terms of the GNU General Public License as published by
13+
the Free Software Foundation, either version 3 of the License, or
14+
(at your option) any later version.
15+
16+
This program is distributed in the hope that it will be useful,
17+
but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
GNU General Public License for more details.
20+
21+
You should have received a copy of the GNU General Public License
22+
along with this program. If not, see <https://www.gnu.org/licenses/>.

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ Used in the projects [FastAsyncWorldEdit](https://github.com/IntellectualSites/F
77
```kotlin
88
repositories {
99
maven {
10-
name = "IntellectualSites' Snapshots"
11-
url = uri("https://mvn.intellectualsites.com/content/repositories/snapshots/")
10+
name = "IntellectualSites"
11+
url = uri("https://mvn.intellectualsites.com/content/groups/public/")
1212
}
1313
}
1414

1515
dependencies {
16-
implementation("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT")
16+
implementation("com.intellectualsites.paster:Paster:1.1.0")
1717
}
1818
```
19-
20-
- [Javadocs](https://ci.athion.net/job/Paster/javadoc/)
19+
You need to shade Paster into your software by either using maven shade or gradle shadow.

build.gradle.kts

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1+
import org.cadixdev.gradle.licenser.LicenseExtension
2+
13
plugins {
24
java
35
`java-library`
46
`maven-publish`
7+
8+
id("org.cadixdev.licenser") version "0.6.1"
59
}
610

7-
configure<JavaPluginConvention> {
8-
sourceCompatibility = JavaVersion.VERSION_1_8
9-
targetCompatibility = sourceCompatibility
11+
the<JavaPluginExtension>().toolchain {
12+
languageVersion.set(JavaLanguageVersion.of(16))
1013
}
1114

1215
group = "com.intellectualsites.paster"
13-
version = "1.0.2-SNAPSHOT"
16+
version = "1.1.0"
17+
18+
repositories {
19+
mavenCentral()
20+
}
1421

1522
dependencies {
1623
compileOnlyApi("com.google.code.gson:gson:2.8.0")
1724
compileOnlyApi("com.google.guava:guava:21.0")
1825
compileOnlyApi("com.google.code.findbugs:jsr305:3.0.2")
1926
}
2027

21-
repositories {
22-
mavenCentral()
28+
configure<LicenseExtension> {
29+
header.set(resources.text.fromFile(file("HEADER.txt")))
30+
newLine.set(false)
2331
}
2432

25-
val javadocDir = rootDir.resolve("docs").resolve("javadoc").resolve(project.name)
33+
val javadocDir = rootDir.resolve("docs").resolve("javadoc")
2634
tasks {
2735
val assembleTargetDir = create<Copy>("assembleTargetDirectory") {
2836
destinationDir = rootDir.resolve("target")
@@ -47,6 +55,7 @@ tasks {
4755
options.compilerArgs.add("-Xlint:$disabledLint")
4856
options.isDeprecation = true
4957
options.encoding = "UTF-8"
58+
options.release.set(11)
5059
}
5160

5261
javadoc {
@@ -57,6 +66,7 @@ tasks {
5766
"implSpec:a:Implementation Requirements:",
5867
"implNote:a:Implementation Note:"
5968
)
69+
opt.links("https://javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.2/")
6070
opt.destinationDirectory = javadocDir
6171
}
6272
}
@@ -73,6 +83,14 @@ publishing {
7383

7484
pom {
7585

86+
licenses {
87+
license {
88+
name.set("GNU General Public License, Version 3.0")
89+
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
90+
distribution.set("repo")
91+
}
92+
}
93+
7694
developers {
7795
developer {
7896
id.set("Sauilitired")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

100644100755
File mode changed.

renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
]
5+
}

0 commit comments

Comments
 (0)