|
1 | | -plugins { |
2 | | - id "com.gradle.plugin-publish" version "0.9.1" |
3 | | - id "org.openbakery.xcode-plugin" version "0.21.0" |
4 | | -} |
5 | | - |
6 | | -apply plugin: 'java' |
7 | | -apply plugin: 'maven-publish' |
| 1 | +buildscript { |
| 2 | + repositories { |
| 3 | + maven { |
| 4 | + url('https://openbakery.org/repository/') |
| 5 | + } |
| 6 | + mavenCentral() |
| 7 | + } |
8 | 8 |
|
9 | | -import org.gradle.util.VersionNumber |
10 | | -def gVersion = VersionNumber.parse( gradle.gradleVersion ) |
11 | | -if ( gVersion <= VersionNumber.parse( '7.0' ) ) { |
12 | | - apply plugin: 'maven' |
| 9 | + dependencies { |
| 10 | + classpath "org.openbakery:xcode-plugin:0.23.+" |
| 11 | + } |
13 | 12 | } |
14 | 13 |
|
| 14 | +apply plugin: "org.openbakery.xcode-plugin" |
15 | 15 |
|
16 | 16 | group = 'de.inetsoftware' |
17 | 17 | version = '2.0' |
18 | 18 |
|
19 | | -repositories { |
20 | | - mavenCentral() |
21 | | -} |
22 | | - |
23 | | -dependencies { |
24 | | - if ( gVersion <= VersionNumber.parse( '7.0' ) ) { |
25 | | - compile gradleApi() |
26 | | - } else { |
27 | | - implementation gradleApi() |
28 | | - } |
29 | | -} |
30 | | - |
31 | | -sourceSets { |
32 | | - main { |
33 | | - resources { |
34 | | - srcDirs = ['.'] |
35 | | - exclude 'build' |
36 | | - } |
37 | | - } |
38 | | -} |
39 | | - |
40 | | -if( !System.getProperty("local") && file( '../BuildScripts/base.gradle' ).exists() ) { |
41 | | - apply from: '../BuildScripts/base.gradle' // for internal build system |
42 | | - println "Uploading into internal Repository" |
43 | | - |
44 | | - preparePublish.dependsOn 'sourcesJar' |
45 | | - if ( System.getProperty("snapshot") ) { |
46 | | - version += '-SNAPSHOT' // setting version to snapshot |
47 | | - } |
48 | | - |
49 | | -} else { |
50 | | - println "Uploading into local '../repo'" |
51 | | - version += '-SNAPSHOT' // setting version to snapshot |
52 | | - publishing { |
53 | | - repositories { |
54 | | - mavenDeployer { |
55 | | - repository(url: uri('../repo')) |
56 | | - } |
57 | | - } |
58 | | - } |
59 | | -} |
60 | | - |
61 | | -task sourcesJar(type: Jar) { |
62 | | - publishing.dependsOn sourcesJar |
63 | | - from sourceSets.main.resources |
64 | | - classifier "sources" |
65 | | - |
66 | | - doLast { |
67 | | - configurations.archives.artifacts.removeAll{ it.classifier != "sources" } // only leave gthe sources |
68 | | - } |
69 | | -} |
70 | | - |
71 | | -compileJava.enabled = false |
72 | | -classes.enabled = false |
73 | | -jar.enabled = false |
74 | | - |
75 | 19 | xcodebuild { |
76 | 20 | scheme = 'SetupBuilderOSXPrefPane' |
77 | 21 | target = 'SetupBuilderOSXPrefPane' |
|
0 commit comments