-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (56 loc) · 1.51 KB
/
build.gradle
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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.0/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
id 'maven-publish'
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
repositories {
jcenter()
}
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
testImplementation 'junit:junit:4.12'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.36'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
}
dependencies {
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'jlib-netobjects'
groupId = 'not.alexa'
version = '0.9.1'
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
// Local only
url 'file://'+System.getProperty('user.home')+'/maven-repo'
}
}
}