forked from Itiviti/gradle-msbuild-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 2.19 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
import org.gradle.internal.os.OperatingSystem;
plugins {
id 'nu.studer.plugindev' version '1.0.3'
id "com.jfrog.bintray" version "1.2"
id "com.ullink.msbuild" version "2.8"
id "com.ullink.nuget" version "2.7"
}
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:3.5.0'
compile 'net.java.dev.jna:platform:3.5.0'
compile 'com.google.guava:guava:16.0.1'
compile 'commons-io:commons-io:2.4'
}
msbuild.dependsOn nugetRestore
msbuild.onlyIf { OperatingSystem.current().windows }
msbuild {
solutionFile = file('ProjectFileParser.sln')
configuration = 'Release'
projectName = 'ProjectFileParser'
}
task generateExe(dependsOn: msbuild, type: Exec) {
workingDir = msbuild.mainProject.getProjectPropertyPath('OutputPath')
commandLine = [file('packages/ILRepack.1.26.0/tools/ILRepack.exe'),
'/log', '/wildcards', '/internalize', '/ndebug',
'/out:'+file("src/main/resources/META-INF/bin/ProjectFileParser.exe"),
msbuild.mainProject.properties.TargetPath,
'Newtonsoft.Json.dll']
}
generateExe.onlyIf { OperatingSystem.current().windows }
nugetRestore {
solutionFile = file('ProjectFileParser.sln')
}
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()
}