Skip to content

Commit 8bbef56

Browse files
committed
We actually only need the xcodebuild. In a new Version.
1 parent 73a9bb9 commit 8bbef56

File tree

1 file changed

+11
-67
lines changed

1 file changed

+11
-67
lines changed

src/com/inet/gradle/setup/dmg/preferences/build.gradle

Lines changed: 11 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,21 @@
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+
}
88

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+
}
1312
}
1413

14+
apply plugin: "org.openbakery.xcode-plugin"
1515

1616
group = 'de.inetsoftware'
1717
version = '2.0'
1818

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-
7519
xcodebuild {
7620
scheme = 'SetupBuilderOSXPrefPane'
7721
target = 'SetupBuilderOSXPrefPane'

0 commit comments

Comments
 (0)