aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2019-03-29 01:32:04 +0100
committerpacien2019-03-29 01:32:04 +0100
commitcb31c8dc05bec6e1d23c8800fa9bf5607dd0b5b4 (patch)
treee64ec7d551dae2cea0fbff842a0af9ab81e3b7d3
parentb6869c1b17c65594f65c3ad5e53461082e5c3088 (diff)
downloadjava-lemonad-cb31c8dc05bec6e1d23c8800fa9bf5607dd0b5b4.tar.gz
configure publishing
-rw-r--r--build.gradle3
-rw-r--r--jitpack.yml2
-rw-r--r--publish.gradle51
3 files changed, 54 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index b4b5242..4ec32b5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,8 +20,7 @@ plugins {
20 id 'java' 20 id 'java'
21} 21}
22 22
23group 'org.pacien' 23apply from: 'publish.gradle'
24version '1.0-SNAPSHOT'
25 24
26sourceCompatibility = 1.11 25sourceCompatibility = 1.11
27 26
diff --git a/jitpack.yml b/jitpack.yml
new file mode 100644
index 0000000..adb3fe1
--- /dev/null
+++ b/jitpack.yml
@@ -0,0 +1,2 @@
1jdk:
2 - openjdk11
diff --git a/publish.gradle b/publish.gradle
new file mode 100644
index 0000000..ff48c02
--- /dev/null
+++ b/publish.gradle
@@ -0,0 +1,51 @@
1/*
2 * lemonad - Some functional sweetness for Java
3 * Copyright (C) 2019 Pacien TRAN-GIRARD
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19apply plugin: 'maven'
20
21group 'org.pacien'
22version '1.0-SNAPSHOT'
23
24task sourcesJar(type: Jar, dependsOn: classes) {
25 classifier = 'sources'
26 from sourceSets.main.allSource
27}
28
29task javadocJar(type: Jar, dependsOn: javadoc) {
30 classifier = 'javadoc'
31 from javadoc.destinationDir
32}
33
34artifacts {
35 archives sourcesJar
36 archives javadocJar
37}
38
39install {
40 repositories.mavenInstaller {
41 pom.project {
42 licenses {
43 license {
44 name 'GNU AFFERO GENERAL PUBLIC LICENSE'
45 url 'http://www.gnu.org/licenses/agpl-v3.html'
46 distribution 'repo'
47 }
48 }
49 }
50 }
51}