mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-17 09:06:55 +01:00
81 lines
2.3 KiB
Groovy
81 lines
2.3 KiB
Groovy
/*
|
|
* This file is part of dependency-check-gradle.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* Copyright (c) 2015 Wei Ma. All Rights Reserved.
|
|
*/
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven {
|
|
url "https://plugins.gradle.org/m2/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
classpath "com.gradle.publish:plugin-publish-plugin:0.9.0"
|
|
}
|
|
}
|
|
/*
|
|
plugins {
|
|
id 'nu.studer.plugindev' version '1.0.3'
|
|
}*/
|
|
|
|
apply plugin: 'idea'
|
|
apply plugin: 'groovy'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'signing'
|
|
apply plugin: "com.gradle.plugin-publish"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile(
|
|
localGroovy(),
|
|
gradleApi(),
|
|
'org.owasp:dependency-check-core:1.3.0',
|
|
'org.owasp:dependency-check-utils:1.3.0'
|
|
)
|
|
|
|
testCompile ('com.netflix.nebula:nebula-test:2.2.2'){
|
|
exclude group: 'org.codehaus.groovy'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
integTest {
|
|
groovy.srcDir file('src/integTest/groovy')
|
|
resources.srcDir file('src/integTest/resources')
|
|
compileClasspath = sourceSets.main.output + configurations.testRuntime
|
|
runtimeClasspath = output + compileClasspath
|
|
}
|
|
}
|
|
|
|
task integTest(type: Test) {
|
|
group = 'verification'
|
|
testClassesDir = sourceSets.integTest.output.classesDir
|
|
classpath = sourceSets.integTest.runtimeClasspath
|
|
reports.html.destination = file("$buildDir/reports/integ")
|
|
jvmArgs '-XX:MaxPermSize=256m'
|
|
}
|
|
|
|
group = 'com.thoughtworks.tools'
|
|
version = '0.0.6'
|
|
|
|
apply from: 'conf/publish/local.gradle'
|
|
//apply from: 'conf/publish/maven.gradle'
|
|
apply from: 'conf/publish/gradlePluginsPortal.gradle'
|
|
//apply from: 'conf/publish/bintray.gradle' // according to the documentation of plugindev, this line has to be placed and the very end of the build file |