~ubuntu-branches/debian/stretch/insubstantial/stretch

« back to all changes in this revision

Viewing changes to flamingo/build.gradle

  • Committer: Package Import Robot
  • Author(s): Felix Natter
  • Date: 2016-01-18 20:58:45 UTC
  • Revision ID: package-import@ubuntu.com-20160118205845-crbmrkda61qsi5qa
Tags: upstream-7.3+dfsg2
ImportĀ upstreamĀ versionĀ 7.3+dfsg2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dependencies {
 
2
  compile project(":trident")
 
3
  testCompile group: 'com.jgoodies', name: 'forms', version: '1.2.0'
 
4
  testCompile group: 'junit', name: 'junit', version: '4.3.1'
 
5
  testCompile group: 'org.easytesting', name: 'fest-assert', version: '1.2'
 
6
  testCompile group: 'org.easytesting', name: 'fest-reflect', version: '1.2'
 
7
  testCompile group: 'org.easytesting', name: 'fest-swing', version: '1.2.1'
 
8
  testCompile group: 'org.easytesting', name: 'fest-swing-junit', version: '1.2.1'
 
9
  testCompile group: 'org.easytesting', name: 'fest-swing-junit-4.3.1', version: '1.2.1'
 
10
}
 
11
 
 
12
sourceSets {
 
13
  main
 
14
  test
 
15
}
 
16
 
 
17
test {
 
18
  // if we are headless, don't run our tests
 
19
  enabled = !Boolean.getBoolean("java.awt.headless")
 
20
}
 
21
 
 
22
jar {
 
23
  manifest {
 
24
    attributes(
 
25
        "Flamingo-Version": version,
 
26
        "Flamingo-VersionName": versionKey,
 
27
    )
 
28
  }
 
29
}
 
30
 
 
31
task testJar(type: Jar) {
 
32
  classifier = 'tst'
 
33
 
 
34
  from sourceSets.test.output
 
35
 
 
36
  manifest {
 
37
    attributes(
 
38
        "Flamingo-Version": version,
 
39
        "Flamingo-VersionName": versionKey,
 
40
    )
 
41
  }
 
42
}
 
43
 
 
44
uploadPublished {
 
45
  repositories {
 
46
    mavenDeployer {
 
47
      configurePOM(pom)
 
48
    }
 
49
  }
 
50
}
 
51
 
 
52
install {
 
53
  configurePOM(repositories.mavenInstaller.pom)
 
54
}
 
55
 
 
56
private def configurePOM(def pom) {
 
57
  configureBasePom(pom)
 
58
  pom.project {
 
59
    name "flamingo"
 
60
    description "A fork of @kirilcool's flamingo project"
 
61
    url "http://insubstantial.github.com/insubstantial/flamingo/"
 
62
    licenses {
 
63
      license {
 
64
        name 'The BSD License'
 
65
        url 'http://www.opensource.org/licenses/bsd-license.php'
 
66
        distribution 'repo'
 
67
      }
 
68
    }
 
69
  }
 
70
  // deal with a gradle bug where transitive=false is not passed into the generated POM
 
71
  pom.whenConfigured {cpom ->
 
72
    cpom.dependencies.each {dep ->
 
73
      switch (dep.artifactId) {
 
74
        case 'trident':
 
75
          dep.classifier = 'swing'
 
76
          break
 
77
      }
 
78
    }
 
79
  }
 
80
}
 
81
 
 
82
task testRibbon(type: JavaExec) {
 
83
    main = 'test.ribbon.BasicCheckRibbon'
 
84
    debug = Boolean.valueOf(System.getProperty('debug', 'false'))
 
85
    classpath = sourceSets.test.runtimeClasspath
 
86
}
 
87
 
 
88
task testRibbonRTL(type: JavaExec) {
 
89
    main = 'test.ribbon.BasicCheckRibbon'
 
90
    debug = Boolean.valueOf(System.getProperty('debug', 'false'))
 
91
    classpath = sourceSets.test.runtimeClasspath
 
92
    systemProperty "user.language", "iw"
 
93
}