File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ buildscript {
2020 mavenLocal()
2121 }
2222 dependencies {
23- classpath group : ' cz.habarta.typescript-generator' , name : ' typescript-generator-gradle-plugin' , version : ' 1.2 -SNAPSHOT'
23+ classpath group : ' cz.habarta.typescript-generator' , name : ' typescript-generator-gradle-plugin' , version : ' 1.7 -SNAPSHOT'
2424 }
2525}
2626
@@ -30,8 +30,8 @@ generateTypeScript {
3030 ' cz.habarta.typescript.generator.sample.Person'
3131 ]
3232 jsonLibrary = ' jackson2'
33+ outputKind = ' global'
3334 namespace = ' GradleSample' ;
34- // module = 'my-module'
3535// declarePropertiesAsOptional = false
3636// removeTypeNameSuffix = 'Json'
3737// mapDate = 'asNumber'
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public class GenerateTask extends DefaultTask {
3333 public boolean sortTypeDeclarations ;
3434 public boolean noFileComment ;
3535 public List <File > javadocXmlFiles ;
36- public List <String > extensions ;
36+ public List <String > extensionClasses ;
3737 public List <String > optionalAnnotations ;
3838 public boolean experimentalInlineEnums ;
3939
@@ -81,7 +81,7 @@ public void generate() throws Exception {
8181 settings .sortTypeDeclarations = sortTypeDeclarations ;
8282 settings .noFileComment = noFileComment ;
8383 settings .javadocXmlFiles = javadocXmlFiles ;
84- settings .loadExtensions (classLoader , extensions );
84+ settings .loadExtensions (classLoader , extensionClasses );
8585 settings .loadOptionalAnnotations (classLoader , optionalAnnotations );
8686 settings .experimentalInlineEnums = experimentalInlineEnums ;
8787 settings .validateFileName (new File (outputFile ));
You can’t perform that action at this time.
0 commit comments