You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Properties
* More ```` to ```
* groovy to gradle
* Fix stray indentation in code blocks
I know this looks a bit strange in the IDE, like we're mixing 2- and 4-space indents, but this fixes the blocks all being indented by two spaces on the website.
Copy file name to clipboardExpand all lines: _posts/2021/2021-07-24-devlog-7-lwjgl3.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Another viable approach for _outside of your development environment_ is to just
86
86
- To use **Swing or AWT** APIs, you'll have to depend on the ([experimental](https://github.com/libgdx/libgdx/issues?q=is%3Aissue+is%3Aopen+label%3Aglfw-awt-macos)) gdx-lwjgl3-glfw-awt-macos extension. See [`AwtTestLWJGL`](https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-lwjgl3/src/com/badlogic/gdx/tests/lwjgl3/AwtTestLWJGL.java) in gdx-tests-lwjgl3 for an example.
87
87
- The LWJGL 3 backend does [not yet](https://github.com/libgdx/libgdx/pull/6247) have an equivalent for `LwjglAWTCanvas` and `LwjglAWTFrame`.
88
88
- As the graphical tools in **gdx-tools** require the `LwjglAWTCanvas` class, the library has a hard dependency on LWJGL 2. If you are using one of the non-graphical tools of the gdx-tools project (in particular [TexturePacker](/wiki/tools/texture-packer#from-source)) and the LWJGL 3 backend _in the same (!) project_, you need to modify your gdx-tools dependency like this:
Copy file name to clipboardExpand all lines: wiki/articles/dependency-management-with-gradle.md
+39-39Lines changed: 39 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The root directory, and each sub directory contains a `build.gradle` file, for c
30
30
Here is a small section of the _default_ buildscript that is generated from the setup:
31
31
32
32
_Full script you will see will differ slightly depending on what other modules you have_
33
-
```groovy
33
+
```gradle
34
34
//Configuration for the script itself (aka, listing the dependencies of the script that lists dependencies - InSCRIPTion!)
35
35
buildscript {
36
36
//Defines the repositories required by this script, e.g. hosting the android plugin
@@ -119,14 +119,14 @@ In order to add an external dependency to a project, you must declare the depend
119
119
120
120
(Some) libGDX extensions are mavenized and pushed to the maven repo, which means we can very easily pull them into our projects from the `build.gradle` file. You can see in the list [below](#libgdx-extensions) of the format that these dependencies take.
121
121
If you are familiar with maven, notice the format:
and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="Box2DLights" />`
@@ -344,7 +344,7 @@ and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="B
344
344
***Note:** This extension release cycle is not dependent on the main libGDX library, and so it is not unusual to have a new version published between two libGDX releases. If you want to pull in a new (or different) version, check [https://repo1.maven.org/maven2/com/badlogicgames/ashley/ashley/](https://repo1.maven.org/maven2/com/badlogicgames/ashley/ashley/) and change the `ashleyVersion` value in the `ext` section.
345
345
346
346
**Core Dependency:**
347
-
```groovy
347
+
```gradle
348
348
api "com.badlogicgames.ashley:ashley:$ashleyVersion"
349
349
```
350
350
@@ -355,7 +355,7 @@ No native dependency required.
and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="com.badlogic.ashley_gwt" />`
@@ -367,7 +367,7 @@ and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="c
367
367
***Note:** This extension release cycle is not dependent on the main libGDX library, and so it is not unusual to have a new version published between two libGDX releases. If you want to pull in a new (or different) version, check [https://repo1.maven.org/maven2/com/badlogicgames/gdx/gdx-ai/](https://repo1.maven.org/maven2/com/badlogicgames/gdx/gdx-ai/) and change the `aiVersion` value in the `ext` section.
368
368
369
369
**Core Dependency:**
370
-
```groovy
370
+
```gradle
371
371
api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
372
372
```
373
373
@@ -378,7 +378,7 @@ No native dependency required.
and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="com.badlogic.gdx.ai" />`
@@ -392,7 +392,7 @@ and in `./html/src/yourgamedomain/GdxDefinition*.gwt.xml` add `<inherits name="c
392
392
Gradle finds files defined as dependencies by looking through all the repositories defined in the buildscript. Gradle understands several repository formats, which include Maven and Ivy.
393
393
394
394
Under the `subprojects` stub of the root build.gradle, you can see how repositories are defined. Here is an example:
395
-
```groovy
395
+
```gradle
396
396
subprojects {
397
397
version = '1.0.0'
398
398
ext.appName = 'MyOriginalGame'
@@ -410,14 +410,14 @@ subprojects {
410
410
#### Adding Dependencies
411
411
External dependencies are identified by their group, name, version and sometimes classifier attributes.
@@ -470,7 +470,7 @@ This will include all the .jar files in the libs directory as dependencies.
470
470
**NOTE**: "dir" is relative to the project root, if you add the dependencies to your android project, 'libs' would need to be in the android/ directory. If you added the dependencies in the core project, 'libs' would need to be in the core/ directory.
471
471
472
472
An example with a more _complete_ script:
473
-
```groovy
473
+
```gradle
474
474
project(":android") {
475
475
apply plugin: "android"
476
476
@@ -501,7 +501,7 @@ When adding `flat file` dependencies to a project, for example the core project,
501
501
502
502
For example, if you were to add the all the jars in your `libs` directory as dependencies for your project, you would need to do the following.
Copy file name to clipboardExpand all lines: wiki/articles/updating-libgdx.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ libGDX's Gradle based projects make it very easy to switch between libGDX versio
13
13
14
14
Your Gradle based project makes it very easy to switch between releases and nightly builds. Open up the `gradle.properties` file in the root of your project, and locate the following line:
0 commit comments