• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2017 Google Inc. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17plugins {
18  id "org.jetbrains.intellij" version "0.4.21"
19}
20
21repositories {
22  mavenCentral()
23}
24
25ext {
26  googleJavaFormatVersion = '1.8'
27}
28
29apply plugin: 'org.jetbrains.intellij'
30apply plugin: 'java'
31
32intellij {
33  pluginName = "google-java-format"
34  version = "202.6250.13-EAP-SNAPSHOT"
35}
36
37patchPluginXml {
38  pluginDescription = "Formats source code using the google-java-format tool. This version of " +
39                      "the plugin uses version ${googleJavaFormatVersion} of the tool."
40  version = "${googleJavaFormatVersion}.0.1"
41  sinceBuild = '201'
42  untilBuild = ''
43}
44
45publishPlugin {
46  token = project.ext.properties.jetbrainsPluginRepoToken
47}
48
49sourceSets {
50  main {
51    java.srcDir 'src'
52    resources.srcDir 'resources'
53  }
54}
55
56dependencies {
57  compile "com.google.googlejavaformat:google-java-format:${googleJavaFormatVersion}"
58}
59