forked from Itiviti/gradle-msbuild-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (76 loc) · 2.32 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'nu.studer.plugindev' version '1.0.3'
id 'com.jfrog.bintray' version '1.2'
id 'com.ullink.msbuild' version '2.15'
id 'com.ullink.nuget' version '2.13'
id 'com.ullink.nunit' version '1.5'
id 'net.researchgate.release' version '2.3.4'
}
group = 'com.ullink.gradle'
apply plugin: 'groovy'
description 'Gradle plugin for MSBuild project build.'
ext.dotnetPath = file('src/main/dotnet')
dependencies {
testCompile 'junit:junit:4.11'
testCompile group: 'org.spockframework', name: 'spock-core', version: '0.7-groovy-2.0', transitive: false
compile 'net.java.dev.jna:jna:4.2.2'
compile 'net.java.dev.jna:jna-platform:4.2.2'
compile 'com.google.guava:guava:16.0.1'
compile 'commons-io:commons-io:2.4'
}
nuget {
// still experiencing freezes on mono with nuget 3.3.0
version = '2.8.6'
}
nugetRestore {
solutionFile = file('ProjectFileParser.sln')
}
msbuild.dependsOn nugetRestore
msbuild {
solutionFile = file('ProjectFileParser.sln')
configuration = 'Release'
projectName = 'ProjectFileParser'
}
nunit {
nunitVersion = '3.0.1'
testAssemblies = [ msbuild.projects['ProjectFileParser_Tests'].properties.TargetPath ]
}
nunit.dependsOn msbuild
task generateZip(dependsOn: nunit, type: Zip) {
from (msbuild.mainProject.properties.TargetDir) {
include '*.exe'
include '*.dll'
include '*.targets'
include '*.props'
}
into '/'
archiveName 'ProjectFileParser.zip'
}
jar {
from(generateZip.outputs.files) {
into 'META-INF'
}
}
bintray {
// to remove when upgraded plugindev to 1.0.4
user project.properties.bintrayUser
key project.properties.bintrayApiKey
pkg.repo = 'gradle-plugins'
pkg.userOrg = 'ullink'
pkg.version.gpg.sign = true
}
plugindev {
pluginId 'com.ullink.msbuild'
pluginName 'com.ullink.gradle:gradle-msbuild-plugin'
pluginImplementationClass 'com.ullink.MsbuildPlugin'
pluginDescription project.description
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'msbuild', 'c#', '.net'
authorId 'gluck'
authorName 'Francois Valdy'
authorEmail '[email protected]'
projectUrl "https://github.com/Ullink/${project.name}"
projectInceptionYear '2012'
done()
}
project.tasks.afterReleaseBuild.dependsOn project.tasks.bintrayUpload