Check-in [73a70f4547]

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

Overview
Comment:More build gradle work.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wip-gradle-modernization
Files: files | file ages | folders
SHA1: 73a70f4547ea9382bfbda6531782f787c8868ec6
User & Date: stephanie.gawroriski 2020-02-14 02:54:03
Context
2020-02-14
03:46
Add Gradle conversion script. check-in: 0d3d3213d3 user: stephanie.gawroriski tags: wip-gradle-modernization
02:54
More build gradle work. check-in: 73a70f4547 user: stephanie.gawroriski tags: wip-gradle-modernization
01:50
Add base work which declares a number of tasks. check-in: 77cc0f6cb8 user: stephanie.gawroriski tags: wip-gradle-modernization
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to build.gradle.



1













2


3




























// SquirrelJME Build System Modernization Plugin


apply from: 'utils-dev/squirreljme.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
30
31
32
// 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")
}

// Properties for every sub-project
subprojects
{
	// Use these plugins for sub-projects
	apply plugin: 'java'
	
	// Java ME 8 is effectively Java 7
	sourceCompatibility = 1.7
	targetCompatibility = 1.7
}

Changes to settings.gradle.













>
>
>
>
>
>
1
2
3
4
5
6
// Recursively 
file(rootProject.projectDir.toPath().resolve("modules"))
	.eachDir(
	{ subdir ->
		include subdir.name
	});

Changes to utils-dev/squirreljme.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
30
31
32
33
34
35
36
/**
 * SquirrelJME Plugin
 *
 * See: https://docs.gradle.org/current/javadoc/org/gradle/api/Plugin.html
 * See: https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html
 */

class SquirrelJMEPlugin
	implements Plugin<Project>
{
	org.gradle.api.Task __makeSquirrelJMEProject(Project __project, int id)
	{
		__project.task('hello-' + id)
			{
				description 'Does a hello? ' + id
				group 'SquirrelJME'
				
				doFirst
				{
					println 'Hello world? ' + id
				}
			}
	}
	
	// Apply the plugin
	void apply(Project __project)
	{
		for (int i = 0; i < 32; i++)
		{
			__makeSquirrelJMEProject(__project, i);
		}
	}
}

// Enable it and all of its tasks
apply plugin: SquirrelJMEPlugin
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<