-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (65 loc) · 1.74 KB
/
build.gradle
File metadata and controls
78 lines (65 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
}
allprojects {
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group 'fr.fistin'
version '1.6.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
compileJava {
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}
}
archivesBaseName = "FistinAPI"
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact tasks.sourcesJar
artifact tasks.javadocJar
pom {
groupId = project.group
artifactId = 'fistinapi-api'
version = project.version
name = 'FistinAPI'
description = 'API afin de communiquer entre les différents composants de l\'infrastructure de FistinNetwork. (API)'
url = 'https://github.com/FistinNetwork/FistinAPI'
}
}
}
repositories {
maven {
credentials {
username System.getenv('USERNAME')
password System.getenv('TOKEN')
}
name "FistinAPI_maven"
url "https://maven.pkg.github.com/FistinNetwork/FistinAPI"
}
}
}
dependencies {
api 'org.jetbrains:annotations:20.1.0'
testImplementation 'junit:junit:4.13.2'
}