Skip to content

Commit 15ff55c

Browse files
committed
Initial commit
0 parents  commit 15ff55c

16 files changed

+1670
-0
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+

.github/workflows/gradle-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Gradle CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
testjava:
9+
strategy:
10+
matrix:
11+
jdk: [8, 17]
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK ${{ matrix.jdk }}
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: ${{ matrix.jdk }}
23+
distribution: 'zulu'
24+
25+
- name: Build and test project with Java ${{ matrix.jdk }}
26+
run: gradle build javadoc

.github/workflows/gradle-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Gradle Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v2
19+
with:
20+
java-version: '8'
21+
distribution: 'zulu'
22+
23+
- name: Publish AzulJavaDownloader to MavenCentral
24+
run: gradle publish
25+
env:
26+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
27+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
28+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
29+
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
30+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
31+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gradle
2+
build
3+
.idea

LICENSE

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

build.gradle

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
plugins {
2+
id 'java-library'
3+
id 'maven-publish'
4+
id 'signing'
5+
id 'idea'
6+
}
7+
8+
group 'fr.flowarg'
9+
version '1.0.0'
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
15+
dependencies {
16+
implementation 'org.jetbrains:annotations:24.0.1'
17+
implementation 'fr.flowarg:flowmultitools:1.4.0'
18+
implementation 'com.google.code.gson:gson:2.10.1'
19+
}
20+
21+
compileJava {
22+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
23+
options.encoding = 'UTF-8'
24+
}
25+
26+
java {
27+
withJavadocJar()
28+
withSourcesJar()
29+
}
30+
31+
artifacts {
32+
archives sourcesJar, javadocJar
33+
}
34+
35+
publishing {
36+
publications {
37+
mavenJava(MavenPublication) {
38+
from components.java
39+
artifact tasks.sourcesJar
40+
artifact tasks.javadocJar
41+
42+
pom {
43+
groupId = project.group
44+
version = project.version
45+
artifactId = 'azuljavadownloader'
46+
name = project.name
47+
description = 'Simple tool to download Azul\'s Zulu Java'
48+
url = 'https://github.com/FlowArg/AzulJavaDownloader'
49+
50+
scm {
51+
connection = 'scm:git:git://github.com/FlowArg/AzulJavaDownloader.git'
52+
developerConnection = 'scm:git:ssh://github.com:FlowArg/AzulJavaDownloader.git'
53+
url = 'https://github.com/FlowArg/AzulJavaDownloader/tree/master'
54+
}
55+
56+
licenses {
57+
license {
58+
name = 'GNU General Public License v3.0'
59+
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
60+
}
61+
}
62+
63+
developers {
64+
developer {
65+
id = 'flowarg'
66+
name = 'Flow Arg'
67+
68+
}
69+
}
70+
}
71+
}
72+
}
73+
74+
repositories {
75+
maven {
76+
credentials {
77+
username = System.getenv("OSSRH_USERNAME")
78+
password = System.getenv("OSSRH_PASSWORD")
79+
}
80+
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
81+
}
82+
}
83+
}
84+
85+
signing {
86+
def signingKey = System.getenv("GPG_PRIVATE_KEY")
87+
def signingPassword = System.getenv("GPG_PASSPHRASE")
88+
useInMemoryPgpKeys(signingKey, signingPassword)
89+
sign publishing.publications.mavenJava
90+
}

gradle/wrapper/gradle-wrapper.jar

60.6 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
4+
networkTimeout=10000
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)