Skip to content

Commit 40411a1

Browse files
committed
Migrate Project structure to use gradle
The project depends on the toolbox and the annotation plugin, so this will only ever build if they update first.
1 parent 09bcaab commit 40411a1

File tree

1,219 files changed

+446
-512
lines changed

Some content is hidden

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

1,219 files changed

+446
-512
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
out/
22
/.idea
33
/.idea/misc.xml
4+
/.gradle
5+
/build

.travis.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@ sudo: false
22
language: java
33
jdk:
44
- oraclejdk8
5-
6-
script: "./travis.sh"
5+
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_twigPluginVersion=${TWIG_PLUGIN_VERSION}"
21+
- "export ORG_GRADLE_PROJECT_toolboxPluginVersion=${TOOLBOX_PLUGIN_VERSION}"
22+
- "export ORG_GRADLE_PROJECT_annotationPluginVersion=${ANNOTATION_PLUGIN_VERSION}"
1423

1524
env:
16-
#- PHPSTORM_ENV=2017.2 # unsupported api
17-
#- PHPSTORM_ENV=2017.2.4 # unsupported api
18-
- PHPSTORM_ENV=2017.3.2
19-
#- PHPSTORM_ENV=eap # disabled never used
25+
- IDEA_VERSION="IU-181.4203.6" PHP_PLUGIN_VERSION="181.4096.20" TWIG_PLUGIN_VERSION="181.3741.23" TOOLBOX_PLUGIN_VERSION="0.4.7" ANNOTATION_PLUGIN_VERSION="5.4"
26+
- IDEA_VERSION="IU-2017.3.5" PHP_PLUGIN_VERSION="173.4301.34" TWIG_PLUGIN_VERSION="173.4301.7" TOOLBOX_PLUGIN_VERSION="0.4.6" ANNOTATION_PLUGIN_VERSION="5.3"
2027

21-
matrix:
22-
allow_failures:
23-
- env: PHPSTORM_ENV=eap
28+
script:
29+
- "./gradlew check buildPlugin"

build-test.xml

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

build.gradle

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.twig:${twigPluginVersion}",
24+
"de.espend.idea.php.annotation:${annotationPluginVersion}",
25+
"de.espend.idea.php.toolbox:${toolboxPluginVersion}",
26+
'yaml',
27+
'CSS',
28+
'java-i18n',
29+
'properties'
30+
]
31+
pluginName 'Symfony Plugin'
32+
33+
patchPluginXml {
34+
sinceBuild '173'
35+
untilBuild '181.*'
36+
}
37+
}
38+
39+
group 'fr.adrienbrault.idea.symfony2plugin'
40+
version '0.16.165'
41+
42+
wrapper {
43+
gradleVersion '4.3.1'
44+
}
45+
46+
test.testLogging.exceptionFormat = TestExceptionFormat.FULL

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ideaVersion = IU-181.4203.6
2+
phpPluginVersion = 181.4096.20
3+
twigPluginVersion = 181.3741.23
4+
toolboxPluginVersion = 0.4.7
5+
annotationPluginVersion = 5.4

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+
#Thu Mar 22 14:59:04 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)