Comments (8)
You are right, it looks like the item actually hasn't been ever synchronised to Maven Central.
please, follow the instructions "Set me up" here: https://bintray.com/metadata/model-catalogue
also take note that further development is going under new repository and coordinates: http://spreadsheet.dsl.builders/
from spreadsheet-builder.
Ok, I've updated my coordinates. And, I've attempted to use version 1.0. When I run the example provided in the documentation, I end up with an error
@Grab('builders.dsl:spreadsheet-builder-poi:1.0')
@Grab('org.apache.ivy:ivy:2.4.0')
//import org.modelcatalogue.spreadsheet.builder.poi.PoiSpreadsheetBuilder
import builders.dsl.spreadsheet.builder.poi.PoiSpreadsheetBuilder
File file = new File('spreadsheet.xlsx')
PoiSpreadsheetBuilder.create(file).build {
sheet('Sample') {
row {
cell 'A'
cell 'B'
cell 'C'
}
row {
cell 1
cell 2
cell 3
}
}
}
The error
Caught: groovy.lang.MissingMethodException: No signature of method: spreadsheetBuilderTest.sheet() is applicable for argument types: (java.lang.Integer, spreadsheetBuilderTest$_run_closure1$_closure2) values: [1, spreadsheetBuilderTest$_run_closure1$_closure2@5ddabb18]
Possible solutions: sleep(long, groovy.lang.Closure), sleep(long), wait(), grep(), every(), inspect()
groovy.lang.MissingMethodException: No signature of method: spreadsheetBuilderTest.sheet() is applicable for argument types: (java.lang.Integer, spreadsheetBuilderTest$_run_closure1$_closure2) values: [1, spreadsheetBuilderTest$_run_closure1$_closure2@5ddabb18]
Possible solutions: sleep(long, groovy.lang.Closure), sleep(long), wait(), grep(), every(), inspect()
at spreadsheetBuilderTest$_run_closure1.doCall(spreadsheetBuilderTest.groovy:10)
at com.sun.proxy.$Proxy9.configure(Unknown Source)
at builders.dsl.spreadsheet.api.Configurer$Runner.doConfigure(Configurer.java:28)
at builders.dsl.spreadsheet.builder.poi.PoiSpreadsheetBuilder.build(PoiSpreadsheetBuilder.java:48)
at spreadsheetBuilderTest.run(spreadsheetBuilderTest.groovy:9)
Am I missing another statement?
from spreadsheet-builder.
there are some weird behaviour going on when using Grab
. Please, try to use full Gradle project.
from spreadsheet-builder.
Per your suggestion, I created a gradle project and removed the @grab annotations. However, when I try to execute the script I get
Caught: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found
at org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(PackagePropertiesMarshaller.java:41)
at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:161)
at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:141)
at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:72)
at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:394)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:475)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:243)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:235)
at builders.dsl.spreadsheet.builder.poi.PoiSpreadsheetBuilder.create(PoiSpreadsheetBuilder.java:18)
at builders.dsl.spreadsheet.builder.poi.PoiSpreadsheetBuilder$create.call(Unknown Source)
at spreadsheetBuilderTest.run(spreadsheetBuilderTest.groovy:4)
from spreadsheet-builder.
Is there any chance you can share the project? Which version of Java are you using? Which OS?
from spreadsheet-builder.
Sure.
I can share the project. The odd thing is that I was able to get it working using the Java example. Unfortunately, I could not get it to work using the Groovy example. I've created a repo on github where you can view the project: https://github.com/restagner/simple-spreadsheet-demo
I would appreciate it, if you could demonstrate, using the project I've submitted to you, how to get this working with pure Groovy.
from spreadsheet-builder.
see restagner/simple-spreadsheet-demo#1
from spreadsheet-builder.
The latest release of the builders.dsl
fork is now at Maven Central.
from spreadsheet-builder.
Related Issues (20)
- tab colors
- How to set border when merging cells? HOT 1
- SpreadsheetQuery object source missing? HOT 3
- "Unable to load extension class" warning message with version 0.3.1 HOT 2
- Multiple cell comments in one cell are not allowed HOT 2
- Zero is displayed as blank cell HOT 8
- optional named styles
- Hide/unhide sheets HOT 3
- column mode
- data mapper
- wrong interface in the docs HOT 1
- Feature Request: Print Area HOT 1
- Feature Request: Freeze rows/columns HOT 1
- org.modelcatalogue.spreadsheet.query.poi.PoiSpreadsheetCriteria is not public HOT 2
- rich text formating
- set font name HOT 1
- Insert Pictures into cells HOT 1
- java.lang.IllegalStateException: The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx Workbook HOT 6
- The named style is not work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spreadsheet-builder.