This commit is contained in:
Vladimir Krivosheev
2016-07-27 10:52:48 +02:00
parent 92a4c9c7f6
commit 001a2a0092
10 changed files with 13 additions and 20 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
<component name="libraryTable">
<library name="Guava">
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/guava-17.0.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/guava-19.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/lib/src/guava-17.0-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/src/guava-19.0-sources.jar!/" />
</SOURCES>
</library>
</component>
+2 -2
View File
@@ -14,11 +14,11 @@
* limitations under the License.
*/
import org.jetbrains.intellij.build.BuildContext
import org.jetbrains.intellij.build.BuildOptions
import org.jetbrains.intellij.build.BuildTasks
import org.jetbrains.intellij.build.IdeaCommunityProperties
import org.jetbrains.jps.model.module.JpsModule
import org.jetbrains.jps.util.JpsPathUtil
import static org.jetbrains.jps.idea.IdeaProjectLoader.guessHome
@@ -952,7 +952,7 @@ def layout_core(String home, String target) {
}
fileset(dir: "$home/lib") {
include(name: "guava-17.0.jar")
include(name: "guava-19.0.jar")
include(name: "picocontainer.jar")
include(name: "trove4j.jar")
include(name: "cli-parser-1.1.jar")
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,16 +20,10 @@ import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.codeInspection.ex.QuickFixWrapper;
import com.intellij.codeInspection.java18StreamApi.StaticPseudoFunctionalStyleMethodInspection;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.roots.ModuleRootManager;
import com.intellij.openapi.roots.libraries.Library;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.testFramework.IdeaTestUtil;
import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
import com.intellij.testFramework.fixtures.JavaCodeInsightFixtureTestCase;
import com.intellij.util.PathUtil;
import com.intellij.util.Processor;
import java.io.File;
@@ -45,10 +39,10 @@ public class StaticPseudoFunctionalStyleMethodTest extends JavaCodeInsightFixtur
@Override
protected void tuneFixture(JavaModuleFixtureBuilder moduleBuilder) throws Exception {
moduleBuilder.setLanguageLevel(LanguageLevel.JDK_1_8);
moduleBuilder.addLibraryJars("guava-17.0.jar", PathManager.getHomePath().replace(File.separatorChar, '/') + "/community/lib/",
"guava-17.0.jar");
moduleBuilder.addLibraryJars("guava-17.0.jar-2", PathManager.getHomePath().replace(File.separatorChar, '/') + "/lib/",
"guava-17.0.jar");
moduleBuilder.addLibraryJars("guava-19.0.jar", PathManager.getHomePath().replace(File.separatorChar, '/') + "/community/lib/",
"guava-19.0.jar");
moduleBuilder.addLibraryJars("guava-19.0.jar-2", PathManager.getHomePath().replace(File.separatorChar, '/') + "/lib/",
"guava-19.0.jar");
moduleBuilder.addJdk(IdeaTestUtil.getMockJdk18Path().getPath());
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@ public class GuavaInspectionTest extends JavaCodeInsightFixtureTestCase {
@Override
protected void tuneFixture(JavaModuleFixtureBuilder moduleBuilder) throws Exception {
moduleBuilder.setLanguageLevel(LanguageLevel.JDK_1_8);
moduleBuilder.addLibraryJars("guava", PathManager.getHomePathFor(Assert.class) + "/lib/", "guava-17.0.jar");
moduleBuilder.addLibraryJars("guava", PathManager.getHomePathFor(Assert.class) + "/lib/", "guava-19.0.jar");
moduleBuilder.addLibraryJars("jsr305", PathManager.getHomePathFor(Assert.class) + "/lib/", "jsr305.jar");
moduleBuilder.addJdk(IdeaTestUtil.getMockJdk18Path().getPath());
}
@@ -121,7 +121,6 @@ public class GuavaInspectionTest extends JavaCodeInsightFixtureTestCase {
doTest();
}
//needs Guava 18.0 as dependency
public void _testChainedFluentIterableWithOf() {
doTest();
}
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -16,7 +16,7 @@ httpmime-4.4.1.jar
ecj-4.5.2.jar
groovy-all-2.4.6.jar
gson-2.5.jar
guava-17.0.jar
guava-19.0.jar
hamcrest-core-1.3.jar
imgscalr-lib-4.2.jar
batik-all.jar
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="guava">
<CLASSES>
<root url="jar://$PROJECT_DIR$/../../lib/guava-17.0.jar!/" />
<root url="jar://$PROJECT_DIR$/../../lib/guava-19.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />