build scripts cleanup: obsolete unused methods from layouts.gant files are removed
[idea/community.git] / build / scripts / layouts.gant
1 /*
2  * Copyright 2000-2016 JetBrains s.r.o.
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 import static org.jetbrains.jps.idea.IdeaProjectLoader.guessHome
17
18 includeTargets << new File("${guessHome(this)}/build/scripts/utils.gant")
19
20 def layoutJps(String home, String targetDir, String buildNumber, Closure additionalJars) {
21   layout(targetDir) {
22     zip("standalone-jps-${buildNumber}.zip") {
23       jar("util.jar") {
24         module("annotations-common")
25         module("annotations")
26         module("util-rt")
27         module("util")
28       }
29
30       jar("jps-launcher.jar") {
31         module("jps-launcher")
32       }
33
34       jar("jps-model.jar") {
35         module("jps-model-api")
36         module("jps-model-impl")
37         module("jps-model-serialization")
38       }
39       jar("jps-builders.jar") {
40         module("forms_rt")
41         module("forms-compiler")
42         module("instrumentation-util")
43         module("instrumentation-util-8")
44         module("javac-ref-scanner-8")
45         module("jps-builders")
46         module("jps-standalone-builder")
47         module("java-runtime")
48       }
49       jar("jps-plugin-system.jar") {
50         module("jps-plugin-system")
51       }
52       //layout of groovy jars must be consistent with GroovyBuilder.getGroovyRtRoots method
53       jar("groovy-jps-plugin.jar") {
54         module("groovy-jps-plugin")
55       }
56       jar("groovy_rt.jar") {
57         module("groovy_rt")
58       }
59       jar("groovy-rt-constants.jar") {
60         module("groovy-rt-constants")
61       }
62       jar("ui-designer-jps-plugin.jar") { module("ui-designer-jps-plugin") }
63
64
65       jar("maven-jps-plugin.jar") { module("maven-jps-plugin") }
66       jar("aether-dependency-resolver.jar") { module("aether-dependency-resolver") }
67       fileset(dir: "$home/plugins/maven/lib") {
68         include(name: "aether-*.jar")
69         include(name: "maven-aether-provider-*.jar")
70       }
71       jar("gradle-jps-plugin.jar") { module("gradle-jps-plugin") }
72       fileset(dir: "$home/plugins/maven/maven30-server-impl/lib/maven3/lib") {include(name: "plexus-utils-*.jar")}
73
74       jar("eclipse-jps-plugin.jar") {
75         module("common-eclipse-util")
76         module("eclipse-jps-plugin")
77       }
78       jar("devkit-jps-plugin.jar") { module("devkit-jps-plugin") }
79       jar("intellilang-jps-plugin.jar") { module("intellilang-jps-plugin") }
80       fileset(dir: "$home/lib") {
81         include(name: "jdom.jar")
82         include(name: "jna.jar")
83         include(name: "trove4j.jar")
84         include(name: "asm-all.jar")
85         include(name: "nanoxml-*.jar")
86         include(name: "protobuf-*.jar")
87         include(name: "cli-parser-*.jar")
88         include(name: "log4j.jar")
89         include(name: "jgoodies-forms.jar")
90         include(name: "ecj*.jar")
91         include(name: "netty-all-*.jar")
92         include(name: "snappy-in-java-*.jar")
93       }
94       fileset(dir: "$home/jps/lib") {
95         include(name: "optimizedFileManager.jar")
96       }
97       jar("ant-jps-plugin.jar") { module("ant-jps-plugin") }
98       additionalJars()
99     }
100     jar("jps-build-test-${buildNumber}.jar") {
101       moduleTests("jps-builders")
102       moduleTests("jps-model-tests")
103       moduleTests("jps-serialization-tests")
104     }
105   }
106 }
107
108 def layout_core(String home, String target) {
109   layout(target) {
110     jar("intellij-core.jar") {
111       module("util-rt")
112       module("util")
113       module("core-api")
114       module("core-impl")
115       module("extensions")
116       module("java-psi-api")
117       module("java-psi-impl")
118     }
119
120     jar("annotations.jar") {
121       module("annotations-common")
122       module("annotations")
123     }
124
125     jar("intellij-core-analysis.jar") {
126       analysisApiModules.each { module it; }
127       analysisImplModules.each { module it; }
128     }
129
130     fileset(dir: "$home/lib") {
131       include(name: "guava-19.0.jar")
132       include(name: "picocontainer.jar")
133       include(name: "trove4j.jar")
134       include(name: "cli-parser-1.1.jar")
135       include(name: "snappy-in-java-0.5.1.jar")
136       include(name: "jayatana-1.2.4.jar")
137       include(name: "imgscalr-lib-4.2.jar")
138       include(name: "batik-all.jar")
139       include(name: "xmlgraphics-commons-1.5.jar")
140       include(name: "xml-apis-ext.jar")
141     }
142   }
143 }