Skip to content

Commit c2cfe40

Browse files
committed
Building with gradle
1 parent 1af990d commit c2cfe40

11 files changed

Lines changed: 348 additions & 2 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ out/
44
target/
55
Mathematica-IntelliJ-Plugin.zip
66
/$LOG_DIR$/
7+
/gradle.properties

.idea/libraries/gson_2_2_2.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/guava_22_0.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/org_eclipse_mylyn_github_org_eclipse_egit_github_core_2_1_5.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown-exported-files.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
language: java
22
jdk: oraclejdk8
3-
script: mvn -B clean package
3+
script: ./gradlew assemble
4+
sudo: required
5+
6+
before_script:
7+
- chmod +x gradlew
8+
49
deploy:
510
provider: releases
611
skip_cleanup: true
712
api_key:
813
secure: UEIzl5zfiXtr4C1TsPM7HYtANWonDo1zib0tJPpr+Iz9qKnSfKbT3m6bhkoT/WvbCueyfjzMdSkyWA9GIRC3swzR+FqaJe99Lc2LJB5s6KszLELxXButZC9SCZS5UvuzcxFqL3M6vu7btfR/Rrafx7aKnWFBkSg4qILJTKb/MF0=
9-
file: $CI_HOME/target/Mathematica-IntelliJ-Plugin-bin.zip
14+
file_glob: true
15+
file: $CI_HOME/built/distributions/Mathematica-IntelliJ-Plugin*.zip
1016
on:
1117
repo: halirutan/Mathematica-IntelliJ-Plugin
1218
tags: true
@@ -17,4 +23,5 @@ env:
1723
- GIT_AUTHOR_NAME: TravisCI
1824
- GIT_AUTHOR_EMAIL: noreply@travis-ci.org
1925
- CI_HOME=`pwd`
26+
- GRADLE_USER_HOME=`pwd`/.gradle
2027

build.gradle

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
plugins {
2+
id "org.jetbrains.intellij" version "0.2.13"
3+
}
4+
5+
apply plugin: 'org.jetbrains.intellij'
6+
apply plugin: 'java'
7+
8+
// On travis, we don't want to deploy to Jetbrains that requires credentials
9+
if (project.file('gradle.properties').exists()) {
10+
apply from: "gradle.properties"
11+
}
12+
13+
intellij {
14+
version = '2017.1.4'
15+
updateSinceUntilBuild = false
16+
pluginName = 'Mathematica-IntelliJ-Plugin'
17+
}
18+
19+
repositories {
20+
mavenCentral()
21+
}
22+
23+
sourceSets {
24+
main {
25+
java.srcDir 'src'
26+
resources.srcDir 'resources'
27+
}
28+
}
29+
30+
dependencies {
31+
compile fileTree(dir: 'lib', include: ['*.jar'])
32+
}
33+
34+
task wrapper(type: Wrapper) {
35+
gradleVersion = '3.5'
36+
}
37+
38+
version '2.3.3'

gradle/wrapper/gradle-wrapper.jar

52.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Jun 29 06:14:22 CEST 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip

gradlew

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)