Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: a880d45ee89f26365d759b88b008335e60fb8aad (plain) (tree)
1
2
3
4
5
6
7
8
9



                                        

                                         
                                             
                                         
                                             
                                        
                                            
                                         
                                             
                                      


                                          


                        
                                    



                                                    



                                                                                 









                                            
                                   
         





                                       








                                                
                                                            
                                                                                          


                         




                                    
 

 
plugins {
	id "org.xtext.xtend" apply false
}

def xtextProjects = [
	'org.eclipse.etrice.core.common',
	'org.eclipse.etrice.core.common.ide',
	'org.eclipse.etrice.core.config',
	'org.eclipse.etrice.core.config.ide',
	'org.eclipse.etrice.core.etmap',
	'org.eclipse.etrice.core.etmap.ide',
	'org.eclipse.etrice.core.etphys',
	'org.eclipse.etrice.core.etphys.ide',
	'org.eclipse.etrice.core.fsm',
	'org.eclipse.etrice.core.fsm.ide',
	'org.eclipse.etrice.core.room',
	'org.eclipse.etrice.core.room.ide'
].collect { project it }

subprojects {
	apply plugin: 'java-library'
	apply plugin: 'org.xtext.xtend'
	
	apply from: "$rootDir/gradle/publish.gradle"
	
	dependencies {
		api platform("org.eclipse.xtext:xtext-dev-bom:${versions.xtext}")
	}
	
	sourceSets {
		main {
			java {
				srcDir 'src'
			}
		}
	}
	
	tasks.withType(JavaCompile) {
		options.encoding = 'cp1252'
		options.release = 8
	}
	
	processResources {
		from('META-INF') {
			into 'META-INF'
		}
	}
}

configure(xtextProjects) {
	sourceSets {
		main {
			java {
				srcDir 'src-gen'
			}
			resources {
				srcDirs = ['src', 'src-gen']
				exclude '**/*.g', '**/*.mwe2', '**/*.xtend', '**/*._trace'
			}
		}
	}
	jar {
		into 'model', {
			from 'model'
		}
	}
}


Back to the top