Skip to content

Commit

Permalink
Add natives to desktop jar
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Dec 30, 2020
1 parent ce40496 commit 8cf9ab7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Publish Snapshot
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
macos:
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ implementation "com.badlogicgames.gdxvideo:gdx-video:0.0.1"
##### Desktop:
```groovy
implementation "com.badlogicgames.gdxvideo:gdx-video-lwjgl:0.0.1"
implementation "com.badlogicgames.gdxvideo:gdx-video-platform:0.0.1:natives-desktop"
implementation "com.badlogicgames.gdxvideo:gdx-video-desktop:0.0.1"
```
or
```groovy
implementation "com.badlogicgames.gdxvideo:gdx-video-lwjgl3:0.0.1"
implementation "com.badlogicgames.gdxvideo:gdx-video-platform:0.0.1:natives-desktop"
implementation "com.badlogicgames.gdxvideo:gdx-video-desktop:0.0.1"
```

##### Android:
Expand Down Expand Up @@ -73,9 +73,8 @@ Desktop:
</dependency>
<dependency>
<groupId>com.badlogicgames.gdxvideo</groupId>
<artifactId>gdx-video-platform</artifactId>
<artifactId>gdx-video-desktop</artifactId>
<version>0.0.1</version>
<classifier>natives-desktop</classifier>
</dependency>
```
Android:
Expand Down
4 changes: 4 additions & 0 deletions gdx-video-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ jnigen {
}
}

jar {
from fileTree("libs").files
}

eclipse.project {
name = projectGroup + "-desktop"
}
8 changes: 7 additions & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,14 @@ afterEvaluate { project ->
classifier = 'javadoc'
}

task nativesJar(type: Jar, dependsOn: classes) {
from fileTree("libs").files
classifier = 'natives'
}

artifacts {
archives libraryJar
//archives libraryJar
//archives nativesJar
archives sourcesJar
archives javadocJar
}
Expand Down

0 comments on commit 8cf9ab7

Please sign in to comment.