forked from j2objc-contrib/j2objc-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (72 loc) · 3.09 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
/*
* Copyright (c) 2015 the authors of j2objc-gradle (see AUTHORS file)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Based on https://plugins.gradle.org/docs/publish-plugin
plugins {
id "com.gradle.plugin-publish" version "0.9.0"
// Outputs a BuildInfo.java file with information about the git repo;
// also fails plugin publishing if your git working directory is unclean.
// Note this only enforces that the code you are publishing is committed
// to your local repo; you have to make sure to push it upstream.
id "com.madvay.tools.build.gitbuildinfo" version "0.1.2-alpha"
}
apply plugin: 'groovy'
dependencies {
compile gradleApi()
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
distributionUrl = 'https://services.gradle.org/distributions/gradle-2.4-all.zip'
}
group = 'com.github.j2objccontrib.j2objcgradle'
// A suffix of -SNAPSHOT means this is not an official release of the
// system, but built from an intermediate source tree. See
// CONTRIBUTING.md on how to update this version number.
version = '0.4.4-alpha-SNAPSHOT'
test {
testLogging {
// Provide full exception info on failure, instead
// of just pointing to an HTML file.
exceptionFormat = 'full'
}
}
pluginBundle {
website = 'https://www.github.com/j2objc-contrib/j2objc-gradle/'
vcsUrl = 'https://github.com/j2objc-contrib/j2objc-gradle'
description =
"Gradle Plugin for J2ObjC, which is an open-source tool from Google that translates " +
"Java source code to Objective-C for the iOS (iPhone/iPad) platform. The plugin is " +
"not affiliated with Google but was developed by former Google Engineers and others. " +
"J2ObjC enables Java source to be part of an iOS application's build, no editing " +
"of the generated files is necessary. The goal is to write an app's non-UI code " +
"(such as application logic and data models) in Java, which is then shared by " +
"Android apps, web apps (using GWT), and iOS apps (using J2ObjC)."
tags = ['android', 'java', 'j2objc', 'ios', 'iphone', 'objective-c', 'xcode']
plugins {
j2objcPlugin {
id = 'com.github.j2objccontrib.j2objcgradle'
displayName = 'J2ObjC Gradle Plugin'
}
}
}
project.tasks.all {
if (it.name == 'publishPluginGroovyDocsJar' || it.name == 'publishPluginJavaDocsJar') {
it.from(project.file('src/main/resources/'))
}
}
buildStamp {
repoBaseUrl "https://github.com/j2objc-contrib/j2objc-gradle/tree/"
packageName "com.github.j2objccontrib.j2objcgradle"
}