Fix `@In` not properly marking variables as assigned
@@ -35,7 +35,7 @@ ext {
def copyrightManager = iprNode.find { it.@name == 'CopyrightManager' }
copyrightManager.@default = "TerasologyEngine"
def copyright = copyrightManager.appendNode("copyright")
- copyright.appendNode("option", [name : "notice", value : 'Copyright 2017 MovingBlocks\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.'])
+ copyright.appendNode("option", [name : "notice", value : 'Copyright ' + Calendar.getInstance().get(Calendar.YEAR) + ' MovingBlocks\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.'])
copyright.appendNode("option", [name : "keyword", value : "Copyright"])
copyright.appendNode("option", [name : "allowReplaceKeyword", value : ""])
copyright.appendNode("option", [name : "myName", value : "TerasologyEngine"])
@@ -49,11 +49,13 @@ ext {
// Setup knowledge of certain annotations being entry points (so don't mark annotated items as unused)
def entryPointsManager = iprNode.appendNode('component', [name : "EntryPointsManager"])
def entryPoints = entryPointsManager.appendNode('entry_points', [version : '2.0'])
- def entryPointsList = entryPointsManager.appendNode('list', [size : '3'])
+ def entryPointsList = entryPointsManager.appendNode('list', [size : '4'])
entryPointsList.appendNode('item', [index : '0', class : 'java.lang.String', itemvalue : 'org.terasology.entitySystem.event.ReceiveEvent'])
entryPointsList.appendNode('item', [index : '1', class : 'java.lang.String', itemvalue : 'org.terasology.registry.In'])
entryPointsList.appendNode('item', [index : '2', class : 'java.lang.String', itemvalue : 'org.terasology.entitySystem.systems.RegisterSystem'])
entryPointsList.appendNode('item', [index : '3', class : 'java.lang.String', itemvalue : 'org.terasology.logic.console.Command'])
+ def writeAnnotations = entryPointsManager.appendNode("writeAnnotations")
+ writeAnnotations.appendNode("writeAnnotation", [name: "org.terasology.registry.In"])
}
// Activate Git for the root + appropriate sub projects (may add more later)
