我创建了一个包,这是它的composer.json:
@Override
public void start(Stage primaryStage) throws Exception
{
TilePane panel = new TilePane();
panel.setTileAlignment(Pos.CENTER_LEFT);
for (int i = 0; i < 25; i++)
{
panel.getChildren().add(new Label(randomAlphabetic(10)));
}
Label title = new Label("Lorem ipsum dolor sit amet, consectetur adipiscing elit");
title.setStyle("-fx-font-size: 16; -fx-font-weight: bold; -fx-wrap-text:true; -fx-border-color:black;"
+ "-fx-text-alignment: center; -fx-alignment: center; -fx-max-width:Infinity; -fx-padding: 5;");
VBox box = new VBox(title, panel);
box.setFillWidth(true); // or box.setStyle("-fx-fill-width: true ;")
box.setPadding(new Insets(10));
primaryStage.setScene(new Scene(box, 400, 400));
primaryStage.show();
}
但是当我尝试通过作曲家要求时:
{
"name": "faustuzas/theme-downloader",
"description": "Easy to use bootstrap theme downloader",
"type": "command",
"require": {
"php": ">=5.6.0",
"guzzlehttp/guzzle": "^6.3"
},
"license": "MIT",
"authors": [
{
"name": "Faustas Butkus",
"email": "faustas.butkus@gmail.com"
}
],
"minimum-stability": "stable"
}
问题出在哪里?
答案 0 :(得分:3)
没有必要使用"minimum-stability": "stable"
,因为它已设置为“稳定”状态&#39;默认情况下。你有一个分支,没有标签,所以packagist将你的包显示为dev-master,这是不稳定的。尝试创建新的分支,例如1.x
并添加标记,例如1.0.0
然后作曲家再次要求。