Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit 0d3826a

Browse files
authored
Merge pull request #178 from cedricziel/i-like-to-gradle-it
Gradle-ify the build
2 parents c4d3422 + 708f6b5 commit 0d3826a

File tree

161 files changed

+588
-611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+588
-611
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
out/
2-
/.idea
2+
/.idea
3+
/build
4+
/.gradle

.travis.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@ language: java
33
jdk:
44
- oraclejdk8
55

6-
script: "./travis.sh"
6+
before_cache:
7+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
8+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
9+
- rm -fr $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
10+
- rm -fr $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
11+
712
cache:
813
directories:
9-
- .cache
10-
before_script:
11-
- sudo apt-get -qq update
12-
- sudo apt-get install ant-optional
13-
- chmod +x travis.sh
14+
- $HOME/.gradle/caches/
15+
- $HOME/.gradle/wrapper/
16+
17+
before_install:
18+
- "export ORG_GRADLE_PROJECT_ideaVersion=${IDEA_VERSION}"
19+
- "export ORG_GRADLE_PROJECT_phpPluginVersion=${PHP_PLUGIN_VERSION}"
20+
- "export ORG_GRADLE_PROJECT_bladePluginVersion=${BLADE_PLUGIN_VERSION}"
1421

1522
env:
16-
- PHPSTORM_ENV=2017.3.2
17-
# - PHPSTORM_ENV=eap # not maintained
23+
- IDEA_VERSION="IU-2018.1" PHP_PLUGIN_VERSION="181.4203.565" BLADE_PLUGIN_VERSION="181.4203.565"
24+
- IDEA_VERSION="IU-2017.3.5" PHP_PLUGIN_VERSION="173.4301.34" BLADE_PLUGIN_VERSION="173.4127.29"
1825

19-
matrix:
20-
allow_failures:
21-
- env: PHPSTORM_ENV=eap
26+
script:
27+
- "./gradlew check buildPlugin"

build-test.xml

Lines changed: 0 additions & 199 deletions
This file was deleted.

build.gradle

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+
3+
buildscript {
4+
repositories {
5+
mavenCentral()
6+
7+
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
8+
}
9+
}
10+
11+
plugins {
12+
id "org.jetbrains.intellij" version "0.2.18"
13+
}
14+
15+
apply plugin: 'idea'
16+
apply plugin: 'org.jetbrains.intellij'
17+
apply plugin: 'java'
18+
19+
intellij {
20+
version ideaVersion
21+
plugins = [
22+
"com.jetbrains.php:${phpPluginVersion}",
23+
"com.jetbrains.php.blade:${bladePluginVersion}",
24+
'CSS',
25+
'java-i18n',
26+
'properties'
27+
]
28+
pluginName 'Laravel Plugin'
29+
30+
patchPluginXml {
31+
sinceBuild '173'
32+
untilBuild '181.*'
33+
}
34+
}
35+
36+
group 'de.espend.idea.laravel'
37+
version '0.15'
38+
39+
wrapper {
40+
gradleVersion '4.3.1'
41+
}
42+
43+
test.testLogging.exceptionFormat = TestExceptionFormat.FULL

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ideaVersion = IU-2018.1
2+
phpPluginVersion = 181.4203.565
3+
bladePluginVersion = 181.4203.565
4+
#ideaVersion = IU-2017.3.5
5+
#phpPluginVersion = 173.4301.34
6+
#bladePluginVersion = 173.4127.29

gradle/wrapper/gradle-wrapper.jar

53.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Mar 23 09:47:35 CET 2018
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-4.0-bin.zip

0 commit comments

Comments
 (0)