diff --git a/.idea/compiler.xml b/.idea/compiler.xml index cbaacd9c..84113d8e 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -6,6 +6,8 @@ + + diff --git a/.idea/libraries/lib_common.xml b/.idea/libraries/lib_common.xml deleted file mode 100644 index 93455296..00000000 --- a/.idea/libraries/lib_common.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_linux.xml b/.idea/libraries/lib_linux.xml deleted file mode 100644 index 0cab676f..00000000 --- a/.idea/libraries/lib_linux.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_linux64.xml b/.idea/libraries/lib_linux64.xml deleted file mode 100644 index 3237dfaa..00000000 --- a/.idea/libraries/lib_linux64.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_mac.xml b/.idea/libraries/lib_mac.xml deleted file mode 100644 index 2abf8f3b..00000000 --- a/.idea/libraries/lib_mac.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_testing.xml b/.idea/libraries/lib_testing.xml deleted file mode 100644 index 2254328f..00000000 --- a/.idea/libraries/lib_testing.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_win32.xml b/.idea/libraries/lib_win32.xml deleted file mode 100644 index d75efe4f..00000000 --- a/.idea/libraries/lib_win32.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib_win64.xml b/.idea/libraries/lib_win64.xml deleted file mode 100644 index 6ca1bb4e..00000000 --- a/.idea/libraries/lib_win64.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index fe21f4f0..aecb7420 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/runConfigurations/Main.xml b/.idea/runConfigurations/Main.xml index dfc8510a..7f494e56 100644 --- a/.idea/runConfigurations/Main.xml +++ b/.idea/runConfigurations/Main.xml @@ -1,19 +1,13 @@ - - \ No newline at end of file diff --git a/README.md b/README.md index 51df7c50..74682768 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,6 @@ This is the source code of Angry IP Scanner, licensed with GPL v2. [Official sit The code is written mostly in Java (currently, source level 1.7). IntelliJ IDEA is recommended for coding (Community Edition is fine). -**Important:** after loading the project in IDEA, make sure you select the appropriate for your platform **lib_xxx library in module dependencies** -*(File -> Project Structure -> Modules -> ipscan -> Dependencies - move the correct lib_xxx to the top)*. - ## Building [![Build Status](https://travis-ci.org/angryip/ipscan.svg?branch=master)](https://travis-ci.org/angryip/ipscan) Using these tools you can build on any platform. The binaries are in the form of diff --git a/build.gradle b/build.gradle index 6a8555f8..83497c8c 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { } apply plugin: 'java' +apply plugin: 'idea' version = '3.5.3' sourceCompatibility = 1.7 @@ -10,7 +11,7 @@ targetCompatibility = 1.7 sourceSets { main { - java { srcDirs "src", "ext/rocksaw/src", "ext/vserv-tcpip/src/java" } + java { srcDirs "src", "ext/rocksaw/src", "ext/vserv-tcpip/src/java", "build/generated/source/apt/main" } resources { srcDirs "config", "src", "resources" } } test { @@ -19,18 +20,27 @@ sourceSets { } } +idea { + module { + generatedSourceDirs += file("build/generated/source/apt/main") + } +} + repositories { jcenter() } dependencies { compile 'com.google.dagger:dagger:2.19' - compileOnly files('lib/swt-win32.jar') + compileOnly files('lib/swt-linux64.jar') compileOnly files('lib/jna.jar') apt 'com.google.dagger:dagger-compiler:2.19' testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-core:2.23.0' - testCompile files('lib/swt-linux64.jar') +} + +configurations { + testImplementation.extendsFrom compileOnly } def packageTask(def platform, def moreJars, def moreLibs, Closure doMore) { diff --git a/ipscan.iml b/ipscan.iml index 45ddb737..d59883bd 100644 --- a/ipscan.iml +++ b/ipscan.iml @@ -9,11 +9,18 @@ + + - + + + + + + @@ -22,10 +29,23 @@ + + + + + + + + + + + + + - + - + @@ -46,14 +66,5 @@ - - - - - - - - - \ No newline at end of file