Skip to content

Commit 72c495c

Browse files
committed
Update gradle files to work with AndroidStudio
1 parent d04b20e commit 72c495c

File tree

5 files changed

+22
-76
lines changed

5 files changed

+22
-76
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ allprojects {
44

55
tasks.withType(JavaCompile) {
66
options.encoding = 'UTF-8'
7-
sourceCompatibility = JavaVersion.VERSION_1_7
8-
targetCompatibility = JavaVersion.VERSION_1_7
7+
sourceCompatibility = JavaVersion.VERSION_1_8
8+
targetCompatibility = JavaVersion.VERSION_1_8
99
}
1010

1111
}

graphics-by-opengl-android/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.super2k.nucleus.android" >
3-
4-
<uses-sdk
5-
android:minSdkVersion="21"
6-
android:targetSdkVersion="25" />
7-
83
<uses-feature
94
android:glEsVersion="0x00020000"
105
android:required="true" />
Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,40 @@
1-
group = 'com.super2k.graphics-by-opengl'
2-
version = '0.0.1-SNAPSHOT'
3-
4-
tasks.withType(JavaCompile) {
5-
options.encoding = 'UTF-8'
6-
sourceCompatibility = JavaVersion.VERSION_1_7
7-
targetCompatibility = JavaVersion.VERSION_1_7
8-
}
9-
101
buildscript {
112
repositories {
123
jcenter()
134
mavenCentral()
145
google()
156
}
167
dependencies {
17-
classpath 'com.android.tools.build:gradle:3.0.0'
18-
classpath 'digital.wup:android-maven-publish:3.1.1'
8+
classpath 'com.android.tools.build:gradle:3.5.3'
199
}
2010
}
2111

12+
apply plugin: 'com.android.library'
13+
2214
repositories {
2315
mavenCentral()
2416
jcenter()
2517
google()
2618
}
2719

28-
apply plugin: 'com.android.library'
29-
3020
android {
31-
compileSdkVersion 25
21+
compileSdkVersion 29
3222
lintOptions {
3323
disable 'MissingTranslation'
3424
}
3525
sourceSets {
3626
main {
3727
manifest.srcFile 'AndroidManifest.xml'
38-
java.srcDirs = ['src']
28+
java.srcDirs = ['src/main/java']
3929
resources.srcDirs = ['res']
4030
res.srcDirs = ['res']
4131
assets.srcDirs = ['res']
4232
}
43-
}
33+
}
4434

4535
defaultConfig {
46-
minSdkVersion 21
36+
minSdkVersion 24
37+
targetSdkVersion 29
4738
versionCode 1
4839
versionName "1"
4940
multiDexEnabled true
@@ -57,35 +48,9 @@ android {
5748
}
5849

5950
dependencies {
51+
implementation project (':graphics-by-opengl-j2se')
6052
implementation 'com.google.android.gms:play-services:10.0.1'
6153
implementation 'com.android.support:multidex:1.0.2'
62-
implementation 'com.super2k.graphics-by-opengl:graphics-by-opengl-j2se:0.0.1-SNAPSHOT'
6354
testImplementation 'junit:junit:4.12'
6455
testImplementation "org.mockito:mockito-core:2.+"
65-
}
66-
67-
//apply plugin: 'digital.wup.android-maven-publish'
68-
apply plugin: 'maven-publish'
69-
70-
task androidSourcesJar(type: Jar) {
71-
classifier = 'sources'
72-
from android.sourceSets.main.java.srcDirs
73-
}
74-
75-
publishing {
76-
publications {
77-
maven(MavenPublication) {
78-
groupId 'com.super2k.graphics-by-opengl'
79-
artifactId 'graphics-by-opengl-android'
80-
version '0.0.1-SNAPSHOT'
81-
artifact bundleRelease
82-
artifact(androidSourcesJar)
83-
}
84-
}
85-
}
86-
87-
88-
//apply plugin: 'com.google.gms.google-services'
89-
90-
91-
56+
}

graphics-by-opengl-j2se/build.gradle

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ version = '0.0.1-SNAPSHOT'
33

44
tasks.withType(JavaCompile) {
55
options.encoding = 'UTF-8'
6-
sourceCompatibility = JavaVersion.VERSION_1_7
7-
targetCompatibility = JavaVersion.VERSION_1_7
6+
sourceCompatibility = JavaVersion.VERSION_1_8
7+
targetCompatibility = JavaVersion.VERSION_1_8
88
}
99

1010
apply plugin: 'java'
@@ -14,21 +14,7 @@ repositories {
1414
jcenter()
1515
}
1616
dependencies {
17-
compile 'com.google.code.gson:gson:2.8.1'
18-
compile 'com.super2k.vecmath:vecmath:0.0.1-SNAPSHOT'
19-
testCompile 'junit:junit:4.12'
20-
}
21-
22-
apply plugin: 'maven-publish'
23-
24-
publishing {
25-
publications {
26-
mavenJava(MavenPublication) {
27-
artifact(sourcesAndClasses)
28-
}
29-
}
30-
}
31-
task sourcesAndClasses(type: Jar) {
32-
from sourceSets.main.output
33-
from sourceSets.main.allJava
17+
implementation project(':vecmath')
18+
implementation 'com.google.code.gson:gson:2.8.1'
19+
testImplementation 'junit:junit:4.12'
3420
}

settings.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
rootProject.name = 'graphics-by-opengl'
2-
include ':graphics-by-opengl-j2se'
3-
include ':graphics-by-opengl-jogl'
42
include ':graphics-by-opengl-android'
3+
include ':graphics-by-opengl-j2se'
4+
include ':vecmath'
55

6-
project(':graphics-by-opengl-j2se').projectDir = "$rootDir/graphics-by-opengl-j2se" as File
7-
project(':graphics-by-opengl-android').projectDir = "$rootDir/graphics-by-opengl-android" as File
8-
project(':graphics-by-opengl-jogl').projectDir = "$rootDir/graphics-by-opengl-jogl" as File
6+
project(':graphics-by-opengl-android').projectDir = new File('graphics-by-opengl-android')
7+
project(':graphics-by-opengl-j2se').projectDir = new File('graphics-by-opengl-j2se')
8+
project(':vecmath').projectDir = new File('../vecmath')

0 commit comments

Comments
 (0)