1+ /*
2+ * ApplicationInsights-Java
3+ * Copyright (c) Microsoft Corporation
4+ * All rights reserved.
5+ *
6+ * MIT License
7+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
8+ * software and associated documentation files (the ""Software""), to deal in the Software
9+ * without restriction, including without limitation the rights to use, copy, modify, merge,
10+ * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
11+ * persons to whom the Software is furnished to do so, subject to the following conditions:
12+ * The above copyright notice and this permission notice shall be included in all copies or
13+ * substantial portions of the Software.
14+ * THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
17+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+ * DEALINGS IN THE SOFTWARE.
20+ */
21+
22+ // This project contains common code for the logging appenders and their tests.
23+
24+ apply from : " $buildScriptsDir /common-java.gradle"
25+
26+ dependencies {
27+ compile project(' :core' )
28+ testCompile group : ' org.mockito' , name : ' mockito-core' , version : ' 1.10.19'
29+ testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
30+ }
31+
32+ // It's not standard for test dependencies to inherit other test dependencies. The 'tests' configuration facilitates this.
33+
34+ task jarTests (type : Jar , dependsOn : testClasses) {
35+ archiveClassifier = ' tests'
36+ from sourceSets. test. output
37+ }
38+
39+ configurations {
40+ tests. extendsFrom testRuntime
41+ }
42+
43+ artifacts {
44+ tests jarTests
45+ }
0 commit comments