Potato configuration, while all other source sets are. In the example above, the source set named fancy_gui will not be included when running the Run-configurations are sharedĪcross all projects in multi-project builds and can be used to create customized scenarios, in which only parts of theĬlasspath influence the final runtime classpath. This setup will create or edit 2 run-configurations, named potato and lightning. Include "potato " // Exclude the fancy_gui source set from the `potato` run-configurationĮxclude "potato ", "fancy_gui " // Exclude all source sets of this project from the `lightning` run- // configurationĮxclude "lightning " // However, include the fancy_gui module nevertheless Include all source sets of this project in the potato // run-configuration Itself to, a specialized filter can be set on the parent project. If this behavior is undesired, or you want finer grained control about the projects the plugin applies Filtering the projects the plugin applies itself toīy default, the flint plugin will apply itself to all sub-projects which also have the java The plugin is capable of working in more complex environments where the configuration needs to be tweaked.
On Windows, ~/.gradle/gradle.properties on OSX/Linux).ĭo not set it in the project gradle.properties as that could expose the token to others! Advanced usage If you use variant 2, make sure to set it in your local gradle properties ( C:\Users\YourUser\.gradle\gradle.properties
Linux allow netbeans to download gradle code#
Declaring dependencies for versioned source sets should be done // the following way (as also seen above for the annotation processor) // // This will allow code in the v1_16_4 source set to use JOML, all other // source sets wont have it available
This will apply the annotation processor to the source sets for // the minecraft versions 1.15.2 and 1.16.4ĪnnotationProcessor flintApi( "annotation-processing-autoload ") InternalAnnotationProcessor flintApi( "annotation-processing-autoload ") // In this example it will be applied to the internal and versioned // source sets In the most // cases that means the internal and versioned configurations, in rare // cases the main source set might also need it. flintApi("module") is a shortcut for "net.flintmc:module:flint-version" // The annotation processor is also required, however, it needs to be // applied to each individual configuration it is used on. Instead rely on `implementation` and // `runtimeOnly` // Pull in the required flint modules, only render-gui in this case
Do NOT use the old `compile` or `runtime` configurations, they // might cause issues. Required for the Flint dependencies below To use the Flint framework, the build script needs to be configured in the usual way, as it has to be for all Running minecraft with a user defined classpath. Just adding the plugin to the project does not automatically pull in the Flint framework, but sets up a workspace for
internal often contains the implementation of the interfaces