Skip to content

Commit

Permalink
Updated code snippets in Gradle tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina Prigara committed Dec 5, 2016
1 parent 5288375 commit a667b02
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 29 deletions.
37 changes: 11 additions & 26 deletions code_samples/gradle_plugin_demo/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
buildscript {
repositories {
mavenCentral()
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'http://dl.bintray.com/jetbrains/intellij-plugin-service'
}
}

plugins {
id "org.jetbrains.intellij" version "0.0.20"
}

apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'

compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

intellij {
version '15.0.1'
plugins 'coverage'
pluginName 'gradle_plugin_demo'
}
dependencies {
classpath "gradle.plugin.org.jetbrains:gradle-intellij-plugin:0.1.10"
}
}

group 'org.jetbrains'
version '0.0.1-SNAPSHOT'

repositories {
mavenCentral()
}
apply plugin: 'org.jetbrains.intellij'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<idea-plugin>
<id>org.jetbrains</id>
<name>gradle_plugin_demo</name>
<name>my_plugin</name>
<version>0.0.1</version>
<vendor email="dummy" url="dummy">dummy</vendor>

Expand All @@ -14,7 +14,7 @@
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="131"/>
<idea-version since-build="162"/>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
Expand Down
6 changes: 5 additions & 1 deletion tutorials/build_system/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ Finally, specify a JVM Gradle will use, it can be the Project JDK. You also conf

<img src="img/step3_gradle_config.png" alt="Verify the JVM is the correct version" width="800px"/>

Now, add the above script to your `build.gradle` file, overwriting any existing contents.
Now, add the following script to your `build.gradle file`, overwriting any existing contents.

```java
{% include /code_samples/gradle_plugin_demo/src/build.gradle %}
```

### 1.4. Running a simple plugin

Expand Down

0 comments on commit a667b02

Please sign in to comment.