aboutsummaryrefslogtreecommitdiff
path: root/publish.gradle
diff options
context:
space:
mode:
authorpacien2019-03-29 01:32:04 +0100
committerpacien2019-03-29 01:32:04 +0100
commitcb31c8dc05bec6e1d23c8800fa9bf5607dd0b5b4 (patch)
treee64ec7d551dae2cea0fbff842a0af9ab81e3b7d3 /publish.gradle
parentb6869c1b17c65594f65c3ad5e53461082e5c3088 (diff)
downloadjava-lemonad-cb31c8dc05bec6e1d23c8800fa9bf5607dd0b5b4.tar.gz
configure publishing
Diffstat (limited to 'publish.gradle')
-rw-r--r--publish.gradle51
1 files changed, 51 insertions, 0 deletions
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}