Check-in [49ff88cc8c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Get cldc-compact building.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wip-gradle-modernization
Files: files | file ages | folders
SHA1: 49ff88cc8cc5ae35d60e80d4f3c2991a82d31d17
User & Date: stephanie.gawroriski 2020-02-14 05:16:25
Context
2020-02-15
14:38
Base work on getting things working. check-in: 832d893990 user: stephanie.gawroriski tags: wip-gradle-modernization
2020-02-14
05:16
Get cldc-compact building. check-in: 49ff88cc8c user: stephanie.gawroriski tags: wip-gradle-modernization
04:02
Setup correct module directories and such. check-in: a7be3ce56a user: stephanie.gawroriski tags: wip-gradle-modernization
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to build.gradle.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Used for building
plugins
{
	id 'java'
}

// Versioning
group = 'cc.squirreljme'
description = 'SquirrelJME is a Java ME 8 Virtual Machine for embedded ' +
	'and Internet of Things devices. It has the ultimate goal of being ' +
	'99.9% compatible with the Java ME standard.'
version = '0.3.0'

// Properties for every project
allprojects
{
	// SquirrelJME Specific Tasks
	apply from: rootProject.projectDir.toPath()
		.resolve("utils-dev")
		.resolve("squirreljme.gradle")
}



|



|
|
|
|
|









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Used for building
plugins
{
	id "java"
}

// Versioning
group = "cc.squirreljme"
description = "SquirrelJME is a Java ME 8 Virtual Machine for embedded " +
	"and Internet of Things devices. It has the ultimate goal of being " +
	"99.9% compatible with the Java ME standard."
version = "0.3.0"

// Properties for every project
allprojects
{
	// SquirrelJME Specific Tasks
	apply from: rootProject.projectDir.toPath()
		.resolve("utils-dev")
		.resolve("squirreljme.gradle")
}

Changes to modules/build.gradle.

1
2
3
4
5
6
7
8
9
10
11
12
13


14


15
16
17


























// Setup plugins
plugins
{
	id 'java'
}

// Versioning
group = 'cc.squirreljme.modules'
description = 'Modules which are a part of SquirrelJME.'

// Properties for every sub-project
subprojects
{


	// Java ME 8 is effectively Java 7


	sourceCompatibility = 1.7
	targetCompatibility = 1.7
}





























|



|
|

|
|

>
>

>
>
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Setup plugins
plugins
{
	id "java"
}

// Versioning
group = "cc.squirreljme.modules"
description = "Modules which are a part of SquirrelJME."

// Properties for every sub-project, except for cldc-compact since that is special
configure(subprojects - project(":modules:cldc-compact"))
{
    apply plugin: 'java'

	// Java ME 8 is effectively Java 7
    java
    {
        compileJava.sourceCompatibility = JavaVersion.VERSION_1_7
		compileJava.targetCompatibility = JavaVersion.VERSION_1_7

		// All files are always in UTF-8 format
		compileJava.options.encoding = "utf-8"

		// Verbose output
		compileJava.options.verbose = false

		// Only use SquirrelJME's boot classes, not the system SDK
		Project cldcCompactProject = project(":modules:cldc-compact")
		compileJava.options.bootstrapClasspath = project.objects.fileCollection().from(
			cldcCompactProject.buildDir.toPath().resolve("classes").resolve("java").resolve("main"))

		// Copy options
		compileTestJava.sourceCompatibility = compileJava.sourceCompatibility
		compileTestJava.targetCompatibility = compileJava.targetCompatibility
		compileTestJava.options.encoding = compileJava.options.encoding
		compileTestJava.options.verbose = compileJava.options.verbose
		compileTestJava.options.bootstrapClasspath = compileJava.options.bootstrapClasspath
    }

	dependencies
	{
		// All projects depend on the Compact CLDC Library
		compile project(":modules:cldc-compact")
		testCompile project(":modules:cldc-compact")
	}
}

Changes to modules/cldc-compact/build.gradle.



























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Setup plugins
plugins
{
	id "java"
}

// Versioning
description = "This is the standard JavaME 8 Connection " +
	"Limited  Device Configuration which contains the core classes used " +
	"by Java ME."

java
{
	compileJava.sourceCompatibility = JavaVersion.VERSION_1_7
	compileJava.targetCompatibility = JavaVersion.VERSION_1_7

	// All files are always in UTF-8 format
	compileJava.options.encoding = "utf-8"

	// Verbose output
	compileJava.options.verbose = true

	// Use our own sources for the project
	compileJava.options.bootstrapClasspath = project.files()
}

dependencies
{
}

Changes to settings.gradle.

1
2
3
4
5
6
7
8
9
// Base module directory
include 'modules'

// Recursively include all projects
file(rootProject.projectDir.toPath().resolve("modules"))
	.eachDir(
	{ subdir ->
		include "modules:" + subdir.name
	});

|







1
2
3
4
5
6
7
8
9
// Base module directory
include "modules"

// Recursively include all projects
file(rootProject.projectDir.toPath().resolve("modules"))
	.eachDir(
	{ subdir ->
		include "modules:" + subdir.name
	});