-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
72 lines (60 loc) · 1.88 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
61
62
63
64
65
66
67
68
69
70
71
72
// To publish to gradle plugins
// First, apply the publishing plugin
buildscript {
// Variables
ext {
CurrentVersion = "1.0.4"
CurrentGroup = "com.github.pt-osda.java-dependencies-analysis"
}
repositories {
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.10"
}
}
group CurrentGroup
version CurrentVersion
apply plugin: "java"
apply plugin: "maven"
apply plugin: "maven-publish"
apply plugin: "com.gradle.plugin-publish"
apply plugin: "java-gradle-plugin"
sourceCompatibility = 1.8
task javadocJar(type: Jar) {
classifier = "javadoc"
from javadoc
}
task sourcesJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: '2.9.5'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.6'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
testCompile group: "junit", name: "junit", version: "4.12"
}
pluginBundle {
website = "https://github.com/pt-osda/java-dependencies-analysis"
vcsUrl = "https://github.com/pt-osda/java-dependencies-analysis"
description = "Analyse Open Source dependencies in projects development. Aplication to analyse security and license aspects in Open Source project\'s dependencies, applicable to Java platform."
tags = ["java", "gradle", "dependencies analysis", "License validation", "vulnerabilities"]
plugins {
greetingsPlugin {
id = CurrentGroup
displayName = "Java Dependencies Analysis"
version = CurrentVersion
}
}
}