Skip/Exclude compilation check of directory which just holds actual project?

shunia's Avatar


16 Feb, 2016 06:24 AM

Project structure like this:

   --project_main                           (contain sources to be compiled)
   --project_dep_1                          (contain sources to be compiled)
   --dir_for_3rdparty_libraries             (contain sub-projects, nothing to compile)
      --3rdparty_lib_1                      (contain sources to be compiled)
      --3rdparty_lib_2                      (contain sources to be compiled)

I have build.gradle inside every directory of the structure showed upside except dir_for_3rdparty_libraries, inside workspace also contains settings.gradle to specify projects related:

include "project_main", "project_dep_1", "dir_for_3rdparty_libraries:3rdparty_lib_1", "dir_for_3rdparty_libraries:3rdparty_lib_2"

and the build.gradle for workspace holds subprojects's universal settings,every other just sets type=swc/swf and dependencies.

Every time when I do gradle build inside the dir workspace, error occurs:

* What went wrong:
A problem occurred configuring project ':dir_for_3rdparty_libraries'.
> Failed to notify project evaluation listener.
   > Error:
[The 'type' property hasn't been specified! This property is required. Possible
values are: [swf, swc, swcAir, air, mobile]]
   > Cannot get property 'configName' on null object

Directory dir_for_3rdparty_libraries actual does not need to be compiled,because there are nothing to be compiled,so how to work around this?

  1. Support Staff 1 Posted by Yennick Trevels on 16 Feb, 2016 07:20 AM

    Yennick Trevels's Avatar

    When you use "dir_for_3rdparty_libraries:3rdparty_lib_1", you basically ask Gradle to include a project named "dir_for_3rdparty_libraries", and a subproject thereof named "3rdparty_lib_1".
    If you only want to include the subproject(s), then use "dir_for_3rdparty_libraries/3rdparty_lib_1"

  2. 2 Posted by shunia on 16 Feb, 2016 07:39 AM

    shunia's Avatar

    Thanks for the quick and right response, another problem:

    public class Main extends Sprite { ... }
    The Bootstrap class is not compiled, how to handle this?
    (The Bootstrap class imports a lot other classes)
  3. Support Staff 3 Posted by Yennick Trevels on 16 Feb, 2016 07:52 AM

    Yennick Trevels's Avatar

    I have no idea about that one. Seems like you are maybe missing a compiler option to include that Bootstrap class? Compiler options can be specified in GradleFx with the 'additionalCompilerOptions' property.

  4. 4 Posted by shunia on 16 Feb, 2016 08:20 AM

    shunia's Avatar

    My question is how to compile embeded Preloader, and suggestion by Yennick Trevels is quite right, yet it really tricks:

    mainClass = "Bootstrap"
    additionalCompilerOptions = [

    Makes Bootstrap the first frame and the Main class the second frame, works fine.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM


04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM